[style] delete trailing whitespace

This commit is contained in:
jzlv 2021-06-21 14:45:33 +08:00
parent bdf17c5e46
commit c9924b3fd7
102 changed files with 1612 additions and 1631 deletions

View file

@ -43,9 +43,7 @@ list(REMOVE_ITEM ADD_SRCS
####################################################### #######################################################
############ Add static libs ########################## ############ Add static libs ##########################
# if(CONFIG_COMPONENT1_INCLUDE_STATIC_LIB) #list(APPEND ADD_STATIC_LIB "libxxx.a")
# list(APPEND ADD_STATIC_LIB "libxxx.a")
# endif()
####################################################### #######################################################
############ Add dynamic libs ######################### ############ Add dynamic libs #########################
@ -60,7 +58,7 @@ list(REMOVE_ITEM ADD_SRCS
############ Add private compile option ################ ############ Add private compile option ################
#add compile option for this component that won't affect other modules #add compile option for this component that won't affect other modules
# list(APPEND ADD_DEFINITIONS_PRIVATE -Dxxx) # list(APPEND ADD_PRIVATE_DEFINITIONS -Dxxx)
####################################################### #######################################################
generate_library() generate_library()

View file

@ -171,7 +171,7 @@ list(APPEND ADD_DEFINITIONS ${CFLAGS})
############ Add private compile option ################ ############ Add private compile option ################
#add compile option for this component that won't affect other modules #add compile option for this component that won't affect other modules
# list(APPEND ADD_DEFINITIONS_PRIVATE -Dxxx) # list(APPEND ADD_PRIVATE_DEFINITIONS -Dxxx)
####################################################### #######################################################
generate_library() generate_library()

View file

@ -21,9 +21,7 @@ list(APPEND ADD_SRCS ${sources})
####################################################### #######################################################
############ Add static libs ########################## ############ Add static libs ##########################
# if(CONFIG_COMPONENT1_INCLUDE_STATIC_LIB) #list(APPEND ADD_STATIC_LIB "libxxx.a")
# list(APPEND ADD_STATIC_LIB "libxxx.a")
# endif()
####################################################### #######################################################
############ Add dynamic libs ######################### ############ Add dynamic libs #########################
@ -37,7 +35,7 @@ list(APPEND ADD_SRCS ${sources})
############ Add private compile option ################ ############ Add private compile option ################
#add compile option for this component that won't affect other modules #add compile option for this component that won't affect other modules
# list(APPEND ADD_DEFINITIONS_PRIVATE -Dxxx) # list(APPEND ADD_PRIVATE_DEFINITIONS -Dxxx)
####################################################### #######################################################
generate_library() generate_library()

View file

@ -33,9 +33,7 @@ list(APPEND ADD_SRCS ${sources})
####################################################### #######################################################
############ Add static libs ########################## ############ Add static libs ##########################
# if(CONFIG_COMPONENT1_INCLUDE_STATIC_LIB) #list(APPEND ADD_STATIC_LIB "libxxx.a")
# list(APPEND ADD_STATIC_LIB "libxxx.a")
# endif()
####################################################### #######################################################
############ Add dynamic libs ######################### ############ Add dynamic libs #########################
@ -50,7 +48,7 @@ list(APPEND ADD_DEFINITIONS -DportasmHANDLE_INTERRUPT=FreeRTOS_Interrupt_Handler
############ Add private compile option ################ ############ Add private compile option ################
#add compile option for this component that won't affect other modules #add compile option for this component that won't affect other modules
# list(APPEND ADD_DEFINITIONS_PRIVATE -Dxxx) # list(APPEND ADD_PRIVATE_DEFINITIONS -Dxxx)
####################################################### #######################################################
generate_library() generate_library()

View file

@ -21,9 +21,7 @@ list(APPEND ADD_REQUIREMENTS common)
####################################################### #######################################################
############ Add static libs ########################## ############ Add static libs ##########################
# if(CONFIG_COMPONENT1_INCLUDE_STATIC_LIB) #list(APPEND ADD_STATIC_LIB "libxxx.a")
# list(APPEND ADD_STATIC_LIB "libxxx.a")
# endif()
####################################################### #######################################################
############ Add dynamic libs ######################### ############ Add dynamic libs #########################
@ -38,7 +36,7 @@ list(APPEND ADD_REQUIREMENTS common)
############ Add private compile option ################ ############ Add private compile option ################
#add compile option for this component that won't affect other modules #add compile option for this component that won't affect other modules
# list(APPEND ADD_DEFINITIONS_PRIVATE -Dxxx) # list(APPEND ADD_PRIVATE_DEFINITIONS -Dxxx)
####################################################### #######################################################
generate_library() generate_library()

View file

@ -22,9 +22,7 @@ list(APPEND ADD_SRCS ${sources})
####################################################### #######################################################
############ Add static libs ########################## ############ Add static libs ##########################
# if(CONFIG_COMPONENT1_INCLUDE_STATIC_LIB) #list(APPEND ADD_STATIC_LIB "libxxx.a")
# list(APPEND ADD_STATIC_LIB "libxxx.a")
# endif()
####################################################### #######################################################
############ Add dynamic libs ######################### ############ Add dynamic libs #########################
@ -39,7 +37,7 @@ list(APPEND ADD_SRCS ${sources})
############ Add private compile option ################ ############ Add private compile option ################
#add compile option for this component that won't affect other modules #add compile option for this component that won't affect other modules
# list(APPEND ADD_DEFINITIONS_PRIVATE -Dxxx) # list(APPEND ADD_PRIVATE_DEFINITIONS -Dxxx)
####################################################### #######################################################
generate_library() generate_library()

View file

@ -7,7 +7,7 @@ list(APPEND ADD_INCLUDE
"${CMAKE_CURRENT_SOURCE_DIR}/class/msc" "${CMAKE_CURRENT_SOURCE_DIR}/class/msc"
"${CMAKE_CURRENT_SOURCE_DIR}/class/video" "${CMAKE_CURRENT_SOURCE_DIR}/class/video"
"${CMAKE_CURRENT_SOURCE_DIR}/class/audio" "${CMAKE_CURRENT_SOURCE_DIR}/class/audio"
#"${CMAKE_CURRENT_SOURCE_DIR}/class/vendor" "${CMAKE_CURRENT_SOURCE_DIR}/class/vendor"
"${CMAKE_CURRENT_SOURCE_DIR}/class/winusb" "${CMAKE_CURRENT_SOURCE_DIR}/class/winusb"
) )
####################################################### #######################################################
@ -30,9 +30,7 @@ list(APPEND ADD_SRCS ${sources})
####################################################### #######################################################
############ Add static libs ########################## ############ Add static libs ##########################
# if(CONFIG_COMPONENT1_INCLUDE_STATIC_LIB) #list(APPEND ADD_STATIC_LIB "libxxx.a")
# list(APPEND ADD_STATIC_LIB "libxxx.a")
# endif()
####################################################### #######################################################
############ Add dynamic libs ######################### ############ Add dynamic libs #########################
@ -47,7 +45,7 @@ list(APPEND ADD_SRCS ${sources})
############ Add private compile option ################ ############ Add private compile option ################
#add compile option for this component that won't affect other modules #add compile option for this component that won't affect other modules
# list(APPEND ADD_DEFINITIONS_PRIVATE -Dxxx) # list(APPEND ADD_PRIVATE_DEFINITIONS -Dxxx)
####################################################### #######################################################
generate_library() generate_library()

View file

@ -20,9 +20,7 @@ list(APPEND ADD_SRCS xz_crc32.c xz_dec_lzma2.c xz_dec_stream.c xz_decompress.c
####################################################### #######################################################
############ Add static libs ########################## ############ Add static libs ##########################
# if(CONFIG_COMPONENT1_INCLUDE_STATIC_LIB) #list(APPEND ADD_STATIC_LIB "libxxx.a")
# list(APPEND ADD_STATIC_LIB "libxxx.a")
# endif()
####################################################### #######################################################
############ Add dynamic libs ######################### ############ Add dynamic libs #########################
@ -37,7 +35,7 @@ list(APPEND ADD_SRCS xz_crc32.c xz_dec_lzma2.c xz_dec_stream.c xz_decompress.c
############ Add private compile option ################ ############ Add private compile option ################
#add compile option for this component that won't affect other modules #add compile option for this component that won't affect other modules
# list(APPEND ADD_DEFINITIONS_PRIVATE -Dxxx) # list(APPEND ADD_PRIVATE_DEFINITIONS -Dxxx)
####################################################### #######################################################
generate_library() generate_library()

View file

@ -11,9 +11,9 @@
/* configure the CPU type */ /* configure the CPU type */
OUTPUT_ARCH( "riscv" ) OUTPUT_ARCH( "riscv" )
/* link with the standard c library */ /* link with the standard c library */
INPUT(-lc) /*INPUT(-lc)*/
/* link with the standard GCC library */ /* link with the standard GCC library */
INPUT(-lgcc) /*INPUT(-lgcc)*/
/* configure the entry point */ /* configure the entry point */
ENTRY(_enter) ENTRY(_enter)

View file

@ -368,7 +368,7 @@ void EF_Ctrl_Readlock_Dbg_Pwd(uint8_t program)
} }
} }
/****************************************************************************//** /****************************************************************************/ /**
* @brief Efuse read LDO11 Vout sel trim * @brief Efuse read LDO11 Vout sel trim
* *
* @param Ldo11VoutSelValue: Ldo11VoutSelValue * @param Ldo11VoutSelValue: Ldo11VoutSelValue
@ -379,26 +379,25 @@ void EF_Ctrl_Readlock_Dbg_Pwd(uint8_t program)
BL_Err_Type EF_Ctrl_Read_Ldo11VoutSel_Opt(uint8_t *Ldo11VoutSelValue) BL_Err_Type EF_Ctrl_Read_Ldo11VoutSel_Opt(uint8_t *Ldo11VoutSelValue)
{ {
uint32_t tmp; uint32_t tmp;
Efuse_Ldo11VoutSelTrim_Info_Type *trim=(Efuse_Ldo11VoutSelTrim_Info_Type *)&tmp; Efuse_Ldo11VoutSelTrim_Info_Type *trim = (Efuse_Ldo11VoutSelTrim_Info_Type *)&tmp;
/* Switch to AHB clock */ /* Switch to AHB clock */
EF_Ctrl_Sw_AHB_Clk_0(); EF_Ctrl_Sw_AHB_Clk_0();
EF_CTRL_LOAD_BEFORE_READ_R0; EF_CTRL_LOAD_BEFORE_READ_R0;
tmp=(BL_RD_REG(EF_DATA_BASE,EF_DATA_0_EF_KEY_SLOT_4_W3))>>7; tmp = (BL_RD_REG(EF_DATA_BASE, EF_DATA_0_EF_KEY_SLOT_4_W3)) >> 7;
if (trim->en) {
if(trim->en){ if (trim->parity == EF_Ctrl_Get_Trim_Parity(trim->sel_value, 4)) {
if(trim->parity==EF_Ctrl_Get_Trim_Parity(trim->sel_value,4)){ *Ldo11VoutSelValue = trim->sel_value;
*Ldo11VoutSelValue=trim->sel_value;
return SUCCESS; return SUCCESS;
} }
} }
return ERROR; return ERROR;
} }
/****************************************************************************//** /****************************************************************************/ /**
* @brief Efuse read LDO11 Vout sel trim * @brief Efuse read LDO11 Vout sel trim
* *
* @param TxPower: TxPower * @param TxPower: TxPower
@ -409,24 +408,22 @@ BL_Err_Type EF_Ctrl_Read_Ldo11VoutSel_Opt(uint8_t *Ldo11VoutSelValue)
BL_Err_Type EF_Ctrl_Read_TxPower_ATE(int8_t *TxPower) BL_Err_Type EF_Ctrl_Read_TxPower_ATE(int8_t *TxPower)
{ {
uint32_t tmp; uint32_t tmp;
Efuse_TxPower_Info_Type *trim=(Efuse_TxPower_Info_Type *)&tmp; Efuse_TxPower_Info_Type *trim = (Efuse_TxPower_Info_Type *)&tmp;
/* Switch to AHB clock */ /* Switch to AHB clock */
EF_Ctrl_Sw_AHB_Clk_0(); EF_Ctrl_Sw_AHB_Clk_0();
EF_CTRL_LOAD_BEFORE_READ_R0; EF_CTRL_LOAD_BEFORE_READ_R0;
tmp=(BL_RD_REG(EF_DATA_BASE,EF_DATA_0_EF_KEY_SLOT_4_W3))>>0; tmp = (BL_RD_REG(EF_DATA_BASE, EF_DATA_0_EF_KEY_SLOT_4_W3)) >> 0;
//if(trim->en){ //if(trim->en){
if((tmp >> 17) & 0x01){//old en bit will be no longer used, now use bit17 as en bit if ((tmp >> 17) & 0x01) { //old en bit will be no longer used, now use bit17 as en bit
if(trim->parity==EF_Ctrl_Get_Trim_Parity(trim->txpower,5)){ if (trim->parity == EF_Ctrl_Get_Trim_Parity(trim->txpower, 5)) {
if(trim->txpower >= 16){ if (trim->txpower >= 16) {
*TxPower=trim->txpower - 32; *TxPower = trim->txpower - 32;
} } else {
else{ *TxPower = trim->txpower;
*TxPower=trim->txpower;
} }
return SUCCESS; return SUCCESS;
@ -435,7 +432,7 @@ BL_Err_Type EF_Ctrl_Read_TxPower_ATE(int8_t *TxPower)
return ERROR; return ERROR;
} }
/****************************************************************************//** /****************************************************************************/ /**
* @brief Efuse lock writing for passwd * @brief Efuse lock writing for passwd
* *
* @param program: program to efuse entity or not * @param program: program to efuse entity or not

View file

@ -34,9 +34,7 @@ list(APPEND ADD_REQUIREMENTS common)
####################################################### #######################################################
############ Add static libs ########################## ############ Add static libs ##########################
# if(CONFIG_COMPONENT1_INCLUDE_STATIC_LIB) #list(APPEND ADD_STATIC_LIB "lib/libtest.a")
# list(APPEND ADD_STATIC_LIB "lib/libtest.a")
# endif()
####################################################### #######################################################
############ Add dynamic libs ######################### ############ Add dynamic libs #########################
@ -52,7 +50,7 @@ list(APPEND ADD_DEFINITIONS -DARCH_RISCV -DBFLB_USE_HAL_DRIVER)
############ Add private compile option ################ ############ Add private compile option ################
#add compile option for this component that won't affect other modules #add compile option for this component that won't affect other modules
# list(APPEND ADD_DEFINITIONS_PRIVATE -DAAAAA=1) # list(APPEND ADD_PRIVATE_DEFINITIONS -DAAAAA=1)
####################################################### #######################################################
generate_library() generate_library()