mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-11-25 00:30:50 +08:00
FMUv1: Fix CAN compilation
This commit is contained in:
1 parent
b799c730f2
commit
e96f4e1944
2 files changed
+3
No files matched your search
@@ -98,6 +98,7 @@ set(config_module_list
|
||||
modules/controllib
|
||||
modules/uORB
|
||||
modules/dataman
|
||||
modules/uavcan
|
||||
|
||||
#
|
||||
# Libraries
|
||||
|
||||
@@ -530,8 +530,10 @@ int UavcanNode::start(uavcan::NodeID node_id, uint32_t bitrate)
|
||||
* If no transceiver is connected, the RX pin will float, occasionally causing CAN controller to
|
||||
* fail during initialization.
|
||||
*/
|
||||
#ifdef GPIO_CAN1_RX
|
||||
stm32_configgpio(GPIO_CAN1_RX);
|
||||
stm32_configgpio(GPIO_CAN1_TX);
|
||||
#endif
|
||||
stm32_configgpio(GPIO_CAN2_RX | GPIO_PULLUP);
|
||||
stm32_configgpio(GPIO_CAN2_TX);
|
||||
|
||||
|
||||
Reference in new issue
Block a user