Skip to content

Commit

Permalink
SPI Driver API bugfixes and cleanup, part 2 (#180)
Browse files Browse the repository at this point in the history
* Make it so that SPI::select() works correctly with async stuff

* Add more overloads for SPI functions, make sure that SPI::abort_transfer() correctly toggles CS

* SPI: Implement reference counting so that DMA channels get freed properly

* Fix initialization of SPI peripheral structures

* Update docs a bit

* Use a mutex to protect SPI::_peripherals instead of a critical section, because spi_free() may not be ISR safe

* Style fixes
  • Loading branch information
multiplemonomials authored Aug 25, 2023
1 parent 20756f3 commit 1ed5f1f
Show file tree
Hide file tree
Showing 3 changed files with 313 additions and 121 deletions.
Loading

0 comments on commit 1ed5f1f

Please sign in to comment.