Page 1 of 1

Hardware control for SPI

Posted: Tue Jan 25, 2011 6:31 am
by mculover
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

Re: Hardware control for SPI

Posted: Tue Jan 25, 2011 9:51 am
by Giovanni
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

Re: Hardware control for SPI

Posted: Tue Jan 25, 2011 9:59 am
by mculover
Hi Giovanni,

It's clear. Thanks for advance.
mculover