refactor: bootloader & cmake cleanup (#5232)

This commit is contained in:
Raphael Coeffic
2024-07-07 21:06:59 +10:00
committed by GitHub
parent 848d7942bf
commit d575242c0f
35 changed files with 483 additions and 547 deletions
+1 -7
View File
@@ -67,9 +67,6 @@ void delay_self(int count)
}
}
#define RCC_AHB1PeriphMinimum (LCD_RCC_AHB1Periph)
#define RCC_APB2PeriphMinimum (LCD_RCC_APB2Periph)
static uint8_t boardGetPcbRev()
{
gpio_init(INTMODULE_PWR_GPIO, GPIO_IN, GPIO_PIN_SPEED_LOW);
@@ -85,7 +82,7 @@ static uint8_t boardGetPcbRev()
}
}
void boardBootloaderInit()
void boardBLInit()
{
#if defined(USB_SW_GPIO)
gpio_init(USB_SW_GPIO, GPIO_OUT, GPIO_PIN_SPEED_LOW);
@@ -107,9 +104,6 @@ void boardInit()
#endif
#if !defined(SIMU)
LL_AHB1_GRP1_EnableClock(RCC_AHB1PeriphMinimum);
LL_APB2_GRP1_EnableClock(RCC_APB2PeriphMinimum);
// enable interrupts
__enable_irq();
#endif