Hardware control for SPI

ChibiOS public support forum for all topics not covered by a specific support forum.

Moderators: RoccoMarco, lbednarz, tfAteba

Post Reply
mculover
Posts: 26
Joined: Fri Dec 10, 2010 2:27 pm

Hardware control for SPI

Post 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
User avatar
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

Post 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
mculover
Posts: 26
Joined: Fri Dec 10, 2010 2:27 pm

Re: Hardware control for SPI

Post by mculover »

Hi Giovanni,

It's clear. Thanks for advance.
mculover
Post Reply