Skip to content

Commit

Permalink
SPI and related changes (#2681)
Browse files Browse the repository at this point in the history
* Define Octal SpiDataMode

* Fix BitOrder capitalization

* Hide DmaError

* Derive more traits

* Return error for unsupported half-duplex parameter combinations

* Remove unnecessary implementation detail

* Return error instead of silently breaking transaction

* Downgrade assert to debug_assert

* Expand on the enum variants

* Remove redundant imports

* Hide some unstable functions
  • Loading branch information
bugadani authored Dec 6, 2024
1 parent d86a079 commit 6b01f79
Show file tree
Hide file tree
Showing 11 changed files with 141 additions and 108 deletions.
2 changes: 2 additions & 0 deletions esp-hal/src/peripheral.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ use core::{
///
/// but it is the size of `T` not the size
/// of a pointer. This is useful if T is a zero sized type.
#[derive(Debug, PartialEq, Eq)]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
pub struct PeripheralRef<'a, T> {
inner: T,
_lifetime: PhantomData<&'a mut T>,
Expand Down
Loading

0 comments on commit 6b01f79

Please sign in to comment.