mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-18 20:09:07 +08:00
holybro_can-gps-v1:Temparary LED support
This commit is contained in:
parent
0554755ed2
commit
41c9f085ef
@ -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);
|
||||
|
||||
|
||||
@ -34,4 +34,5 @@
|
||||
|
||||
__BEGIN_DECLS
|
||||
void rgb_led(int r, int g, int b, int freqs);
|
||||
__EXPORT void led_init(void);
|
||||
__END_DECLS
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user