Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SPI Driver API bugfixes and cleanup, part 2 (#180)
* 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