mirror of
https://github.com/esp-rs/esp-hal.git
synced 2025-09-30 22:01:11 +00:00
Implement Format on i2c::master::Operation (#3348)
This commit is contained in:
parent
523bd381eb
commit
e536a38c08
@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
- `PeripheralInput::connect_input_to_peripheral` and `PeripheralOuptut::{connect_peripheral_to_output, disconnect_from_peripheral_output}` (#3302)
|
- `PeripheralInput::connect_input_to_peripheral` and `PeripheralOuptut::{connect_peripheral_to_output, disconnect_from_peripheral_output}` (#3302)
|
||||||
- `ESP_HAL_CONFIG_CRITICAL_SECTION_IMPL` to allow opting out of the default `critical-section` implementation (#3293)
|
- `ESP_HAL_CONFIG_CRITICAL_SECTION_IMPL` to allow opting out of the default `critical-section` implementation (#3293)
|
||||||
- All peripheral singletons (`GpioPin<...>`, `SPIn`, ...) now have a lifetime, as well as `steal`, `reborrow` and `clone_unchecked` methods (#3305)
|
- All peripheral singletons (`GpioPin<...>`, `SPIn`, ...) now have a lifetime, as well as `steal`, `reborrow` and `clone_unchecked` methods (#3305)
|
||||||
|
- `i2c::master::Operation` now implements `defmt::Format` (#3348)
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
|
@ -299,6 +299,7 @@ enum OpKind {
|
|||||||
///
|
///
|
||||||
/// Several operations can be combined as part of a transaction.
|
/// Several operations can be combined as part of a transaction.
|
||||||
#[derive(Debug, PartialEq, Eq, Hash, strum::Display)]
|
#[derive(Debug, PartialEq, Eq, Hash, strum::Display)]
|
||||||
|
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
|
||||||
pub enum Operation<'a> {
|
pub enum Operation<'a> {
|
||||||
/// Write data from the provided buffer.
|
/// Write data from the provided buffer.
|
||||||
Write(&'a [u8]),
|
Write(&'a [u8]),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user