holybro_can-gps-v1:Temparary LED support

This commit is contained in:
David Sidrane 2021-02-02 03:03:52 -08:00 committed by Daniel Agar
parent 0554755ed2
commit 41c9f085ef
2 changed files with 2 additions and 0 deletions

View File

@ -69,6 +69,7 @@ __EXPORT void stm32_boardinitialize(void)
stm32_configgpio(GPIO_CAN2_TX);
stm32_configgpio(GPIO_MCU_CAN1_SILENT);
stm32_configgpio(GPIO_MCU_CAN2_SILENT);
led_init(); // todo:Remove with creation of proper LED driver
putreg32(getreg32(STM32_RCC_APB1RSTR) | RCC_APB1RSTR_CAN1RST | RCC_APB1RSTR_CAN2RST, STM32_RCC_APB1RSTR);
putreg32(getreg32(STM32_RCC_APB1RSTR) & ~(RCC_APB1RSTR_CAN1RST | RCC_APB1RSTR_CAN2RST), STM32_RCC_APB1RSTR);

View File

@ -34,4 +34,5 @@
__BEGIN_DECLS
void rgb_led(int r, int g, int b, int freqs);
__EXPORT void led_init(void);
__END_DECLS