Skip to content

Commit fef645a

Browse files
authored
Merge pull request #13 from robertlipe/clean_ca
Clean whitespace in customer_apps
2 parents 1ee9de9 + e82b9d7 commit fef645a

File tree

111 files changed

+705
-705
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

111 files changed

+705
-705
lines changed

customer_app/benchmark_security_aes/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ $(info ****** Trying SDK PATH [$(BL60X_SDK_PATH)])
1919
endif
2020

2121
COMPONENTS_BLSYS := bltime blfdt bloop loopadc looprt loopset
22-
COMPONENTS_VFS :=
22+
COMPONENTS_VFS :=
2323

2424
INCLUDE_COMPONENTS += freertos_riscv_ram bl602 bl602_std hal_drv vfs yloop lwip utils cli blog blog_testc mbedtls
2525
INCLUDE_COMPONENTS += $(COMPONENTS_BLSYS)

customer_app/benchmark_security_aes/benchmark_security_aes/aes_test.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -746,7 +746,7 @@ void aes_ctr_test(uint32_t length, uint32_t count,
746746
printf("CTR HW\r\n");
747747
bl_aes_test(ptr, ptr, length, count, keytype, AES_CTR_MODE);
748748
}
749-
749+
750750
free_hw(ptr);
751751
}
752752

customer_app/benchmark_security_aes/benchmark_security_aes/malloc_hw.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ void *malloc_hw (size_t size, ram_type_t type)
7474
if (p_heap_addr == NULL) {
7575
return NULL;
7676
}
77-
77+
7878
ptr = NULL;
7979
counts = 0;
8080
while (1) {

customer_app/benchmark_security_aes/tests/benchmark_security_aes_ecb_tc_test.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def benchmark_security_aes_tc(env, extra_data):
2323
dut.expect('Init CLI with event Driven', timeout=0.5)
2424
print('BL602 CLI init done')
2525
time.sleep(0.1)
26-
26+
2727
for aes in ['ecb', 'cbc', 'ctr', 'gcm'] :
2828
for key, keybit in enumerate(['128', '192', '256'], 1) :
2929
for ram, ramtype in enumerate(['dtcm', 'ocram', 'wram'], 0) :
@@ -42,11 +42,11 @@ def benchmark_security_aes_tc(env, extra_data):
4242
dut.write('test_aes_gmac 32768 256 0')
4343
speed = dut.expect(re.compile(r"aes encrypt speed is (.+)\r"), timeout=30)
4444
print('aes gmac hw dtcm test done speed is : {}'.format(speed[0]))
45-
45+
4646
dut.write('test_aes_gmac 32768 256 1')
4747
speed = dut.expect(re.compile(r"aes encrypt speed is (.+)\r"), timeout=30)
4848
print('aes gmac hw ocram test done speed is : {}'.format(speed[0]))
49-
49+
5050
dut.write('test_aes_gmac 32768 256 2')
5151
speed = dut.expect(re.compile(r"aes encrypt speed is (.+)\r"), timeout=30)
5252
print('aes gmac hw wram test done speed is : {}'.format(speed[0]))

customer_app/bl602_boot2/bl602_boot2/BLSP_Boot2.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ MODULE_OUT_DIR:= $(TARGET_OUT_PATH)/$(MODULE_DIR)
77
$(MODULE_OUT_DIR)/%.o: LOCAL_CFLAGS:= -DBLSP_BOOT2_ROLLBACK -O2
88
$(MODULE_OUT_DIR)/%.o: LOCAL_INCLUDE:= -I$(MODULE_DIR)
99

10-
LOCAL_COM_SRCS_FILE:=
11-
local_com_objs := $(subst .c,.o,$(LOCAL_COM_SRCS_FILE))
10+
LOCAL_COM_SRCS_FILE:=
11+
local_com_objs := $(subst .c,.o,$(LOCAL_COM_SRCS_FILE))
1212

1313
$(MODULE_OUT_DIR)/%.o:$(MODULE_DIR)/%.c
1414
@mkdir -p $(dir $@)

customer_app/bl602_boot2/bl602_boot2/blsp_boot2.c

100755100644
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -432,9 +432,9 @@ int main(void)
432432
MSG_DBG("MCU SDK:%s\r\n",MCU_SDK_VERSION);
433433
MSG_DBG("BSP:%s\r\n",BSP_VERSION);
434434
#endif
435-
if(BLSP_Boot2_Dump_Critical_Flag()){
435+
if(BLSP_Boot2_Dump_Critical_Flag()){
436436
BLSP_Dump_Data(&clkCfg,16);
437-
BLSP_Dump_Data(&flashCfg,16);
437+
BLSP_Dump_Data(&flashCfg,16);
438438
}
439439

440440
MSG_DBG("Get efuse config\r\n");

customer_app/bl602_boot2/bl602_boot2/blsp_boot2_flash.ld

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@ SECTIONS
3535
{
3636
. = ALIGN(4);
3737
__text_code_start__ = .;
38-
38+
3939
KEEP (*(.text.metal.init.enter))
4040
KEEP (*(SORT_NONE(.init)))
41-
41+
4242
*(.text)
4343
*(.text.*)
44-
44+
4545
/*put .rodata**/
4646
*(EXCLUDE_FILE( *bl602_glb.o \
4747
*bl602_pds.o \
@@ -53,34 +53,34 @@ SECTIONS
5353
*bl602_ef_ctrl.o) .rodata*)
5454
*(.rodata)
5555
*(.rodata.*)
56-
56+
5757
*(.srodata)
5858
*(.srodata.*)
59-
59+
6060
. = ALIGN(4);
6161
__text_code_end__ = .;
6262
} > xip_memory
63-
63+
6464
. = ALIGN(4);
6565
__itcm_load_addr = .;
66-
66+
6767
.itcm_region : AT (__itcm_load_addr)
6868
{
6969
. = ALIGN(4);
7070
__tcm_code_start__ = .;
71-
71+
7272
*(.tcm_code)
7373
*(.tcm_const)
7474
*(.sclock_rlt_code)
7575
*(.sclock_rlt_const)
76-
76+
7777
*bl602_romapi.o(.text)
7878
*bl602_romapi.o(.text.*)
7979
*bl602_romapi.o(.rodata)
8080
*bl602_romapi.o(.rodata.*)
8181
*bl602_romapi.o(.srodata)
8282
*bl602_romapi.o(.srodata.*)
83-
83+
8484
*bl602_glb.o*(.rodata*)
8585
*bl602_pds.o*(.rodata*)
8686
*bl602_common.o*(.rodata*)
@@ -89,24 +89,24 @@ SECTIONS
8989
*bl602_sflash.o*(.rodata*)
9090
*bl602_xip_sflash.o*(.rodata*)
9191
*bl602_ef_ctrl.o*(.rodata*)
92-
92+
9393
. = ALIGN(4);
9494
__tcm_code_end__ = .;
9595
} > itcm_memory
96-
96+
9797
__dtcm_load_addr = __itcm_load_addr + SIZEOF(.itcm_region);
98-
98+
9999
.dtcm_region : AT (__dtcm_load_addr)
100100
{
101101
. = ALIGN(4);
102102
__tcm_data_start__ = .;
103-
103+
104104
*(.tcm_data)
105-
105+
106106
. = ALIGN(4);
107107
__tcm_data_end__ = .;
108108
} > dtcm_memory
109-
109+
110110
/*************************************************************************/
111111
/* .stack_dummy section doesn't contains any symbols. It is only
112112
* used for linker to calculate size of stack sections, and assign
@@ -117,59 +117,59 @@ SECTIONS
117117
. = . + StackSize;
118118
. = ALIGN(0x4);
119119
} > dtcm_memory
120-
120+
121121
/* Set stack top to end of RAM, and stack limit move down by
122122
* size of stack_dummy section */
123123
__StackTop = ORIGIN(dtcm_memory) + LENGTH(dtcm_memory);
124124
__StackLimit = __StackTop - SIZEOF(.stack_dummy);
125-
125+
126126
/* Check if data + heap + stack exceeds RAM limit */
127127
ASSERT(__StackLimit >= __tcm_data_end__, "region RAM overflowed with stack")
128128
/*************************************************************************/
129-
129+
130130
__system_ram_load_addr = __dtcm_load_addr + SIZEOF(.dtcm_region);
131-
131+
132132
.system_ram_data_region : AT (__system_ram_load_addr)
133133
{
134134
. = ALIGN(4);
135135
__system_ram_data_start__ = .;
136-
136+
137137
*(.system_ram)
138-
138+
139139
. = ALIGN(4);
140140
__system_ram_data_end__ = .;
141141
} > ram_memory
142-
142+
143143
__ram_load_addr = __system_ram_load_addr + SIZEOF(.system_ram_data_region);
144-
144+
145145
/* Data section */
146146
RAM_DATA : AT (__ram_load_addr)
147147
{
148148
. = ALIGN(4);
149149
__ram_data_start__ = .;
150-
150+
151151
PROVIDE( __global_pointer$ = . + 0x800 );
152-
152+
153153
*(.data)
154154
*(.data.*)
155155
*(.sdata)
156156
*(.sdata.*)
157157
*(.sdata2)
158158
*(.sdata2.*)
159-
159+
160160
. = ALIGN(4);
161161
__ram_data_end__ = .;
162162
} > ram_memory
163-
163+
164164
.bss (NOLOAD) :
165165
{
166166
. = ALIGN(4);
167167
__bss_start__ = .;
168-
168+
169169
*(.bss*)
170170
*(.sbss*)
171171
*(COMMON)
172-
172+
173173
. = ALIGN(4);
174174
__bss_end__ = .;
175175
} > ram_memory
@@ -178,25 +178,25 @@ SECTIONS
178178
{
179179
. = ALIGN(4);
180180
__noinit_data_start__ = .;
181-
181+
182182
*(.noinit_data*)
183-
183+
184184
. = ALIGN(4);
185185
__noinit_data_end__ = .;
186186
} > ram_memory
187-
187+
188188
.heap (NOLOAD):
189189
{
190190
. = ALIGN(4);
191191
__HeapBase = .;
192-
192+
193193
/*__end__ = .;*/
194194
/*end = __end__;*/
195195
KEEP(*(.heap*))
196-
196+
197197
. = ALIGN(4);
198198
__HeapLimit = .;
199199
} > ram_memory
200-
200+
201201
}
202202

customer_app/bl602_boot2/bl602_boot2/blsp_boot_decompress.c

100755100644
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ static int32_t BLSP_Boot2_Fw_Decompress(uint32_t srcAddress,uint32_t destAddress
101101
struct xz_buf b;
102102
struct xz_dec *s;
103103
enum xz_ret ret;
104-
104+
105105
*pDestSize=0;
106106
if(destMaxSize>0){
107107
XIP_SFlash_Erase_Need_Lock(&flashCfg,destAddress,destAddress+destMaxSize-1);

customer_app/bl602_boot2/bl602_boot2/blsp_boot_decompress.h

100755100644
File mode changed.

0 commit comments

Comments
 (0)