px4cannode-v1:Board does CAN GPIO init

This commit is contained in:
David Sidrane 2018-07-25 16:17:49 -07:00 committed by Daniel Agar
parent ef43dee1d6
commit e88bad3b47
1 changed files with 6 additions and 0 deletions

View File

@ -114,6 +114,12 @@ __EXPORT void stm32_boardinitialize(void)
board_autoled_initialize();
board_button_initialize();
stm32_configgpio(GPIO_CAN_CTRL);
/* configure CAN interface */
stm32_configgpio(GPIO_CAN1_RX);
stm32_configgpio(GPIO_CAN1_TX);
#if defined(CONFIG_STM32_SPI1) || defined(CONFIG_STM32_SPI2) || \
defined(CONFIG_STM32_SPI3)
board_spiinitialize();