fix(radio): early init hooks (#6633)
This commit is contained in:
@@ -95,8 +95,6 @@ void EXTERNAL_MODULE_OFF()
|
|||||||
|
|
||||||
void boardBLEarlyInit()
|
void boardBLEarlyInit()
|
||||||
{
|
{
|
||||||
pwrOn();
|
|
||||||
|
|
||||||
timersInit();
|
timersInit();
|
||||||
usbChargerInit();
|
usbChargerInit();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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)))
|
||||||
|
|||||||
@@ -63,11 +63,6 @@ void boardBLEarlyInit()
|
|||||||
{
|
{
|
||||||
videoSwitchInit();
|
videoSwitchInit();
|
||||||
}
|
}
|
||||||
#else
|
|
||||||
void boardBLEarlyInit()
|
|
||||||
{
|
|
||||||
pwrOn();
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
extern "C" void SDRAM_Init();
|
extern "C" void SDRAM_Init();
|
||||||
|
|||||||
Reference in New Issue
Block a user