The CAN bus demonstration in the previous chapter illustrated three STM32 MCUs sharing messages on a common bus. None were masters and none were slaves. All of this was orchestrated with the help of the STM32 CAN bus peripheral and the libopencm3 device driver.
This chapter will discuss the use of the libopencm3 driver API so that you can build CAN bus applications of your own. When combined with the use of FreeRTOS, you will have a convenient environment from which to program more-complex creations.
Initialization
The project source modules are located in the following directory: