refactor(f4): use generic init system on F4 targets (#6183)

Co-authored-by: Richard Li <richard.li@ces.hk>
This commit is contained in:
Raphael Coeffic
2025-07-24 08:56:04 +10:00
committed by GitHub
co-authored by Richard Li
parent 538721ef6b
commit dd013e88e9
15 changed files with 1066 additions and 2025 deletions
+11 -2
View File
@@ -59,6 +59,8 @@
// Common ADC driver
extern const etx_hal_adc_driver_t _adc_driver;
extern "C" void SDRAM_Init();
#if defined(SEMIHOSTING)
extern "C" void initialise_monitor_handles();
#endif
@@ -72,6 +74,7 @@ extern "C" void flushFTL();
static uint8_t boardGetPcbRev()
{
delaysInit();
gpio_init(INTMODULE_PWR_GPIO, GPIO_IN, GPIO_PIN_SPEED_LOW);
delay_ms(1); // delay to let the input settle, else it does not work properly
@@ -176,12 +179,18 @@ void boardBLEarlyInit()
#endif
}
#if defined(RADIO_NB4P)
void boardBLPreJump()
{
SDRAM_Init();
#if defined(RADIO_NB4P)
LL_ADC_Disable(ADC_MAIN);
}
#endif
}
void boardBLInit()
{
SDRAM_Init();
}
static void monitorInit()
{