[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 ##########################
# if(CONFIG_COMPONENT1_INCLUDE_STATIC_LIB)
# list(APPEND ADD_STATIC_LIB "libxxx.a")
# endif()
#list(APPEND ADD_STATIC_LIB "libxxx.a")
#######################################################
############ Add dynamic libs #########################
@ -60,7 +58,7 @@ list(REMOVE_ITEM ADD_SRCS
############ Add private compile option ################
#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()

View file

@ -171,7 +171,7 @@ list(APPEND ADD_DEFINITIONS ${CFLAGS})
############ Add private compile option ################
#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()

View file

@ -21,9 +21,7 @@ list(APPEND ADD_SRCS ${sources})
#######################################################
############ Add static libs ##########################
# if(CONFIG_COMPONENT1_INCLUDE_STATIC_LIB)
# list(APPEND ADD_STATIC_LIB "libxxx.a")
# endif()
#list(APPEND ADD_STATIC_LIB "libxxx.a")
#######################################################
############ Add dynamic libs #########################
@ -37,7 +35,7 @@ list(APPEND ADD_SRCS ${sources})
############ Add private compile option ################
#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()

View file

@ -33,9 +33,7 @@ list(APPEND ADD_SRCS ${sources})
#######################################################
############ Add static libs ##########################
# if(CONFIG_COMPONENT1_INCLUDE_STATIC_LIB)
# list(APPEND ADD_STATIC_LIB "libxxx.a")
# endif()
#list(APPEND ADD_STATIC_LIB "libxxx.a")
#######################################################
############ Add dynamic libs #########################
@ -50,7 +48,7 @@ list(APPEND ADD_DEFINITIONS -DportasmHANDLE_INTERRUPT=FreeRTOS_Interrupt_Handler
############ Add private compile option ################
#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()

View file

@ -21,9 +21,7 @@ list(APPEND ADD_REQUIREMENTS common)
#######################################################
############ Add static libs ##########################
# if(CONFIG_COMPONENT1_INCLUDE_STATIC_LIB)
# list(APPEND ADD_STATIC_LIB "libxxx.a")
# endif()
#list(APPEND ADD_STATIC_LIB "libxxx.a")
#######################################################
############ Add dynamic libs #########################
@ -38,7 +36,7 @@ list(APPEND ADD_REQUIREMENTS common)
############ Add private compile option ################
#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()

View file

@ -22,9 +22,7 @@ list(APPEND ADD_SRCS ${sources})
#######################################################
############ Add static libs ##########################
# if(CONFIG_COMPONENT1_INCLUDE_STATIC_LIB)
# list(APPEND ADD_STATIC_LIB "libxxx.a")
# endif()
#list(APPEND ADD_STATIC_LIB "libxxx.a")
#######################################################
############ Add dynamic libs #########################
@ -39,7 +37,7 @@ list(APPEND ADD_SRCS ${sources})
############ Add private compile option ################
#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()

View file

@ -7,7 +7,7 @@ list(APPEND ADD_INCLUDE
"${CMAKE_CURRENT_SOURCE_DIR}/class/msc"
"${CMAKE_CURRENT_SOURCE_DIR}/class/video"
"${CMAKE_CURRENT_SOURCE_DIR}/class/audio"
#"${CMAKE_CURRENT_SOURCE_DIR}/class/vendor"
"${CMAKE_CURRENT_SOURCE_DIR}/class/vendor"
"${CMAKE_CURRENT_SOURCE_DIR}/class/winusb"
)
#######################################################
@ -30,9 +30,7 @@ list(APPEND ADD_SRCS ${sources})
#######################################################
############ Add static libs ##########################
# if(CONFIG_COMPONENT1_INCLUDE_STATIC_LIB)
# list(APPEND ADD_STATIC_LIB "libxxx.a")
# endif()
#list(APPEND ADD_STATIC_LIB "libxxx.a")
#######################################################
############ Add dynamic libs #########################
@ -47,7 +45,7 @@ list(APPEND ADD_SRCS ${sources})
############ Add private compile option ################
#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()

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 ##########################
# if(CONFIG_COMPONENT1_INCLUDE_STATIC_LIB)
# list(APPEND ADD_STATIC_LIB "libxxx.a")
# endif()
#list(APPEND ADD_STATIC_LIB "libxxx.a")
#######################################################
############ 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 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()

View file

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

View file

@ -368,7 +368,7 @@ void EF_Ctrl_Readlock_Dbg_Pwd(uint8_t program)
}
}
/****************************************************************************//**
/****************************************************************************/ /**
* @brief Efuse read LDO11 Vout sel trim
*
* @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)
{
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 */
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->parity==EF_Ctrl_Get_Trim_Parity(trim->sel_value,4)){
*Ldo11VoutSelValue=trim->sel_value;
if (trim->en) {
if (trim->parity == EF_Ctrl_Get_Trim_Parity(trim->sel_value, 4)) {
*Ldo11VoutSelValue = trim->sel_value;
return SUCCESS;
}
}
return ERROR;
}
/****************************************************************************//**
/****************************************************************************/ /**
* @brief Efuse read LDO11 Vout sel trim
*
* @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)
{
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 */
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((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->txpower >= 16){
*TxPower=trim->txpower - 32;
}
else{
*TxPower=trim->txpower;
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->txpower >= 16) {
*TxPower = trim->txpower - 32;
} else {
*TxPower = trim->txpower;
}
return SUCCESS;
@ -435,7 +432,7 @@ BL_Err_Type EF_Ctrl_Read_TxPower_ATE(int8_t *TxPower)
return ERROR;
}
/****************************************************************************//**
/****************************************************************************/ /**
* @brief Efuse lock writing for passwd
*
* @param program: program to efuse entity or not

View file

@ -34,9 +34,7 @@ list(APPEND ADD_REQUIREMENTS common)
#######################################################
############ Add static libs ##########################
# if(CONFIG_COMPONENT1_INCLUDE_STATIC_LIB)
# list(APPEND ADD_STATIC_LIB "lib/libtest.a")
# endif()
#list(APPEND ADD_STATIC_LIB "lib/libtest.a")
#######################################################
############ Add dynamic libs #########################
@ -52,7 +50,7 @@ list(APPEND ADD_DEFINITIONS -DARCH_RISCV -DBFLB_USE_HAL_DRIVER)
############ Add private compile option ################
#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()