Commit Graph

3 Commits (b0153b7fc5aa9cf1f8ff901b6dc869470e56d67f)

Author SHA1 Message Date
Laurent MEUNIER 37f84ca840 Clean-up style issues
Fix indentation issues, remove useless comments, correct if/else format
2016-10-14 16:15:31 -05:00
Laurent MEUNIER 0dcd5083f3 spi_master_write - rely on HAL
ASYNCH SPI transfer support has been added based on STM HAL services.
To have both ASYNCH and SYNCH work together, we're also moving the
write API to STM HAL instead of direct registers access.
2016-10-14 16:15:28 -05:00
Laurent MEUNIER 0e5d0bda91 Deploy SPI_ASYNCH to all family
the SPI_ASYNCH feature has been already activated for STM32F4.
This patchset makes it supported on all STM32 families by:
- moving spi_s structure at family level instead of board level
- using the F4 spi_api.c reference implementation and making it a common
stm_spi_api.c file which makes maintenance a lot easier.
- the only part that needs to be implemented for each family is the computation
of the clock frequency input to the spi peripheral which is not the same
accross families. So this is what remains in the spi_api.c of each family.

Because of the introduction of the common file, all the above modifications
needs to be done at once.
2016-10-14 16:15:27 -05:00