Skip to content
Snippets Groups Projects
Commit b577bfc4 authored by David Sidrane's avatar David Sidrane Committed by Daniel Agar
Browse files

uavcanesc:Boards do the CAN GPIO init

parent 4b863aa1
No related branches found
No related tags found
No related merge requests found
......@@ -135,18 +135,6 @@ int UavcanEsc::start(uavcan::NodeID node_id, uint32_t bitrate)
return -1;
}
/*
* GPIO config.
* Forced pull up on CAN2 is required for Pixhawk v1 where the second interface lacks a transceiver.
* If no transceiver is connected, the RX pin will float, occasionally causing CAN controller to
* fail during initialization.
*/
px4_arch_configgpio(GPIO_CAN1_RX);
px4_arch_configgpio(GPIO_CAN1_TX);
#if defined(GPIO_CAN2_RX)
px4_arch_configgpio(GPIO_CAN2_RX | GPIO_PULLUP);
px4_arch_configgpio(GPIO_CAN2_TX);
#endif
/*
* CAN driver init
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment