refactor(f4): use generic init system on F4 targets (#6183)
Co-authored-by: Richard Li <richard.li@ces.hk>
This commit is contained in:
co-authored by
Richard Li
parent
538721ef6b
commit
dd013e88e9
@@ -257,7 +257,6 @@ set(BOARD_COMMON_SRC
|
||||
targets/common/arm/stm32/pwr_driver.cpp
|
||||
targets/common/arm/stm32/rotary_encoder_driver.cpp
|
||||
targets/common/arm/stm32/rtc_driver.cpp
|
||||
targets/common/arm/stm32/sdram_driver.cpp
|
||||
targets/common/arm/stm32/spi_flash.cpp
|
||||
targets/common/arm/stm32/watchdog_driver.cpp
|
||||
drivers/frftl.cpp
|
||||
@@ -290,6 +289,7 @@ endif()
|
||||
add_library(board_bl OBJECT EXCLUDE_FROM_ALL
|
||||
${BOARD_COMMON_SRC}
|
||||
${RADIO_SRC_DIR}/gui/colorlcd/boot_menu.cpp
|
||||
targets/common/arm/stm32/sdram_driver.cpp
|
||||
)
|
||||
add_dependencies(board_bl ${BITMAPS_TARGET})
|
||||
set(BOOTLOADER_SRC ${BOOTLOADER_SRC} $<TARGET_OBJECTS:board_bl>)
|
||||
|
||||
@@ -65,6 +65,17 @@ void boardBLEarlyInit()
|
||||
}
|
||||
#endif
|
||||
|
||||
extern "C" void SDRAM_Init();
|
||||
|
||||
void boardBLPreJump()
|
||||
{
|
||||
SDRAM_Init();
|
||||
}
|
||||
|
||||
void boardBLInit()
|
||||
{
|
||||
SDRAM_Init();
|
||||
}
|
||||
|
||||
#if !defined(BOOT)
|
||||
#include "edgetx.h"
|
||||
@@ -156,7 +167,6 @@ void boardInit()
|
||||
!defined(DEBUG)
|
||||
// This is needed to prevent radio from starting when usb is plugged to charge
|
||||
if (usbPlugged()) {
|
||||
delaysInit();
|
||||
#if defined(AUDIO_MUTE_GPIO)
|
||||
// Charging can make a buzzing noise
|
||||
gpio_init(AUDIO_MUTE_GPIO, GPIO_OUT, GPIO_PIN_SPEED_LOW);
|
||||
|
||||
Reference in New Issue
Block a user