Hi Giovanni,
Possible to use hardware NSS control in Chibi RTOS ?.
I check in spiSelect (), It's update spd_state to SPI_ACTIVE.
But hardware NSS control not update spd_state.
Thanks for advance.
mculover
Hardware control for SPI
Moderators: RoccoMarco, lbednarz, tfAteba
- Giovanni
- Site Admin
- Posts: 14895
- Joined: Wed May 27, 2009 8:48 am
- Has thanked: 1202 times
- Been thanked: 997 times
Re: Hardware control for SPI
The STM32 SPI implementation does not use the hardware NSS control, the slave select pin must be asserted and de-asserted using spiSelect() and spiUnselect(), automatic NSS could be implemented as a customization in the SPI driver.
The purpose of the ChibiOS/RT HAL is not to support all the HW features of a specific platform, STM32 in this case, but to offer a common framework for all/most platforms. STM32-specific features like the HW NSS or the automatic CRC generation are out of scope and should be handled as customizations.
Giovanni
The purpose of the ChibiOS/RT HAL is not to support all the HW features of a specific platform, STM32 in this case, but to offer a common framework for all/most platforms. STM32-specific features like the HW NSS or the automatic CRC generation are out of scope and should be handled as customizations.
Giovanni