fix(radio): early init hooks (#6633)

This commit is contained in:
Raphael Coeffic
2025-10-06 18:23:45 +10:00
committed by GitHub
parent 130110f550
commit fea31ebe67
5 changed files with 2 additions and 11 deletions
-2
View File
@@ -95,8 +95,6 @@ void EXTERNAL_MODULE_OFF()
void boardBLEarlyInit() void boardBLEarlyInit()
{ {
pwrOn();
timersInit(); timersInit();
usbChargerInit(); usbChargerInit();
} }
-2
View File
@@ -95,8 +95,6 @@ void EXTERNAL_MODULE_OFF()
void boardBLEarlyInit() void boardBLEarlyInit()
{ {
pwrOn();
// TAS2505 requires reset pin to be low on power on // TAS2505 requires reset pin to be low on power on
gpio_init(AUDIO_RESET_PIN, GPIO_OUT, GPIO_PIN_SPEED_LOW); gpio_init(AUDIO_RESET_PIN, GPIO_OUT, GPIO_PIN_SPEED_LOW);
gpio_clear(AUDIO_RESET_PIN); gpio_clear(AUDIO_RESET_PIN);
@@ -21,7 +21,7 @@
#pragma once #pragma once
#define __INIT_HOOK __attribute__((section(".init_hook"))) #define __INIT_HOOK __attribute__((section(".init_hook"), used))
#define __CCMRAM __attribute__((section(".ccm"), aligned(4))) #define __CCMRAM __attribute__((section(".ccm"), aligned(4)))
#define __DMA __attribute__((section(".ram"), aligned(4))) #define __DMA __attribute__((section(".ram"), aligned(4)))
@@ -21,7 +21,7 @@
#pragma once #pragma once
#define __INIT_HOOK __attribute__((section(".init_hook"))) #define __INIT_HOOK __attribute__((section(".init_hook"), used))
#define __CCMRAM __attribute__((section(".ccm"), aligned(4))) #define __CCMRAM __attribute__((section(".ccm"), aligned(4)))
#define __DMA __attribute__((section(".ram"), aligned(32))) #define __DMA __attribute__((section(".ram"), aligned(32)))
-5
View File
@@ -63,11 +63,6 @@ void boardBLEarlyInit()
{ {
videoSwitchInit(); videoSwitchInit();
} }
#else
void boardBLEarlyInit()
{
pwrOn();
}
#endif #endif
extern "C" void SDRAM_Init(); extern "C" void SDRAM_Init();