refactor: bootloader & cmake cleanup (#5232)
This commit is contained in:
@@ -74,8 +74,6 @@ void delay_self(int count)
|
||||
for (; count > 0; count--);
|
||||
}
|
||||
}
|
||||
#define RCC_AHB1PeriphMinimum (LCD_RCC_AHB1Periph)
|
||||
#define RCC_APB2PeriphMinimum (LCD_RCC_APB2Periph)
|
||||
|
||||
void ledStripOff()
|
||||
{
|
||||
@@ -85,7 +83,7 @@ void ledStripOff()
|
||||
ws2812_update(&_led_timer);
|
||||
}
|
||||
|
||||
void boardBootloaderInit()
|
||||
void boardBLInit()
|
||||
{
|
||||
// USB charger status pins
|
||||
gpio_init(UCHARGER_GPIO, GPIO_IN, GPIO_PIN_SPEED_LOW);
|
||||
@@ -98,8 +96,6 @@ void boardInit()
|
||||
#endif
|
||||
|
||||
#if !defined(SIMU)
|
||||
LL_AHB1_GRP1_EnableClock(RCC_AHB1PeriphMinimum);
|
||||
LL_APB2_GRP1_EnableClock(RCC_APB2PeriphMinimum);
|
||||
// enable interrupts
|
||||
__enable_irq();
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user