UAVCAN: Add STM32H7 FDCAN Driver

Took the existing uavcan_stm32 driver and replaced all bxCAN code with
the equivalent for FDCAN following ST Reference Manual RM0433.

Note: There is still a bug somewhere in regards to FDCAN2 (probably
incorrect setup of the message RAM? Not sure.)  But (FD)CAN1 is fully
functional (Classic CAN only, no CAN-FD).

Also TODO: Configure CAN filters.  Right now there are no filters; all
incoming messages are accepted.
This commit is contained in:
JacobCrabill
2020-06-18 18:55:21 -04:00
committed by Daniel Agar
parent 08d2226043
commit 62799d9aca
18 changed files with 4053 additions and 3 deletions
+2
View File
@@ -40,6 +40,8 @@
# include <uavcan_kinetis/uavcan_kinetis.hpp>
#elif defined(UAVCAN_STM32_NUTTX)
# include <uavcan_stm32/uavcan_stm32.hpp>
#elif defined(UAVCAN_STM32H7_NUTTX)
# include <uavcan_stm32h7/uavcan_stm32h7.hpp>
#else
# error "Unsupported driver"
#endif