uavcannode: Add CANNODE_TERM parameter (configure CAN termination on ARK cannodes)

- adds functionality to enable the built in can termination on the ARK cannodes
This commit is contained in:
Alex Klimaj
2021-10-15 07:29:56 -06:00
committed by GitHub
parent 55910caec5
commit b482986e8e
5 changed files with 25 additions and 0 deletions
+1
View File
@@ -48,6 +48,7 @@
/* CAN termination software control */
#define GPIO_CAN1_TERMINATION /* PB13 */ (GPIO_OUTPUT|GPIO_PUSHPULL|GPIO_SPEED_2MHz|GPIO_OUTPUT_CLEAR|GPIO_PORTB|GPIO_PIN13)
#define GPIO_CAN_TERM GPIO_CAN1_TERMINATION
/* Boot config */
#define GPIO_BOOT_CONFIG /* PC15 */ (GPIO_INPUT|GPIO_PULLUP|GPIO_PORTC|GPIO_PIN15|GPIO_EXTI)