fix(t16): Set the same highest brown-out threshold level for all T16 family radios (#1906)

* Set the same highest BOR level for all T16 family radios

* Add stm32f4xx_flash.c to T16 and T18
This commit is contained in:
Risto
2022-05-04 20:38:07 +10:00
committed by GitHub
parent b1adb18e39
commit 60fbe5eddb
2 changed files with 9 additions and 2 deletions
+8
View File
@@ -95,6 +95,10 @@ if (PCB STREQUAL X10)
set(AUX2_SERIAL ON)
endif()
set(INTERNAL_GPS_BAUDRATE "9600" CACHE STRING "Baud rate for internal GPS")
set(FIRMWARE_TARGET_SRC
${FIRMWARE_TARGET_SRC}
../../thirdparty/STM32F4xx_DSP_StdPeriph_Lib_V1.8.0/Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_flash.c
)
elseif (PCBREV STREQUAL TX16S)
set(FLAVOUR tx16s)
set(LUA_EXPORT lua_export_t16)
@@ -130,6 +134,10 @@ if (PCB STREQUAL X10)
set(AUX2_SERIAL ON)
endif()
set(INTERNAL_GPS_BAUDRATE "9600" CACHE STRING "Baud rate for internal GPS")
set(FIRMWARE_TARGET_SRC
${FIRMWARE_TARGET_SRC}
../../thirdparty/STM32F4xx_DSP_StdPeriph_Lib_V1.8.0/Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_flash.c
)
else()
set(FLAVOUR x10)
set(DEFAULT_INTERNAL_MODULE XJT_PXX1 CACHE STRING "Default internal module")
+1 -2
View File
@@ -159,8 +159,7 @@ void boardInit()
BACKLIGHT_RCC_APB2Periph,
ENABLE);
#if defined(RADIO_TX16S)
#if defined(RADIO_FAMILY_T16)
if (FLASH_OB_GetBOR() != OB_BOR_LEVEL3)
{
FLASH_OB_Unlock();