danny wang 6b2cb6fa39 this N3 net clean robot use bfd1.5V6 | 2 years ago | |
---|---|---|
.. | ||
README.md | 2 years ago | |
_internal_bxcan.h | 2 years ago | |
canard_stm32.c | 2 years ago | |
canard_stm32.h | 2 years ago |
This is a compact and simple driver for STM32 microcontrollers. It has no dependencies besides a tiny part of the standard C library, and can be used with virtually any operating system or on bare metal (so far it has been tested at least with ChibiOS).
In theory, the entire family of STM32 should be supported by this driver, since they all share the same CAN controller IP known as bxCAN. So far this driver has been tested at least with the following MCU:
Some design trade-offs have been made in order to provide the above features.
Note that it is possible to invoke the driver's API functions from IRQ context, provided that the application takes care about proper guarding with critical sections. This approach allows the application to read the RX queue from an external CAN IRQ handler.
The driver is so simple its entire documentation is defined in the header file. Please do endeavor to read it.
Use code search to find real life usage examples using the keyword canard_stm32
.