Skip to content

Commit 2b13e2f

Browse files
committed
修改格式
1 parent 8ab19db commit 2b13e2f

File tree

12 files changed

+216
-219
lines changed

12 files changed

+216
-219
lines changed

bsp/ti-tms320c6678/applications/board.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@
2020
*/
2121
void rt_hw_board_init(void)
2222
{
23-
// initial CPU core
24-
KeyStone_common_CPU_init();
23+
// initial CPU core
24+
KeyStone_common_CPU_init();
2525

26-
// initial interrupt controller
27-
rt_hw_interrupt_init();
26+
// initial interrupt controller
27+
rt_hw_interrupt_init();
2828

29-
// initial system timer
29+
// initial system timer
3030
rt_hw_system_timer_init();
3131

3232
/* initialize memory system */

bsp/ti-tms320c6678/applications/main.c

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515

1616
void rt_init_thread_entry(void *parameter)
1717
{
18-
rt_kprintf("hello rt-thread\n");
19-
return 0;
18+
rt_kprintf("hello rt-thread\n");
19+
return 0;
2020
}
2121

2222
int rt_application_init(void)
@@ -39,42 +39,42 @@ int rt_application_init(void)
3939
*/
4040
void rtthread_startup(void)
4141
{
42-
/* disable interrupt first */
43-
rt_hw_interrupt_disable();
44-
45-
/* init board */
46-
rt_hw_board_init();
42+
/* disable interrupt first */
43+
rt_hw_interrupt_disable();
44+
45+
/* init board */
46+
rt_hw_board_init();
4747

48-
/* show version */
49-
rt_show_version();
48+
/* show version */
49+
rt_show_version();
5050

51-
/* init timer system */
52-
rt_system_timer_init();
51+
/* init timer system */
52+
rt_system_timer_init();
5353

54-
/* init scheduler system */
55-
rt_system_scheduler_init();
54+
/* init scheduler system */
55+
rt_system_scheduler_init();
5656

57-
/* init application */
58-
rt_application_init();
57+
/* init application */
58+
rt_application_init();
5959

60-
/* init timer thread */
61-
rt_system_timer_thread_init();
60+
/* init timer thread */
61+
rt_system_timer_thread_init();
6262

63-
/* init idle thread */
64-
rt_thread_idle_init();
63+
/* init idle thread */
64+
rt_thread_idle_init();
6565

66-
/* start scheduler */
67-
rt_system_scheduler_start();
66+
/* start scheduler */
67+
rt_system_scheduler_start();
6868

69-
/* never reach here */
70-
return ;
69+
/* never reach here */
70+
return ;
7171
}
7272

7373
void main(void)
7474
{
75-
/* startup RT-Thread RTOS */
76-
rtthread_startup();
75+
/* startup RT-Thread RTOS */
76+
rtthread_startup();
7777

78-
for ( ; ; );
78+
for ( ; ; );
7979
}
8080

bsp/ti-tms320c6678/driver/drv_timer.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,21 +20,21 @@
2020
*/
2121
void rt_hw_systick_isr(void)
2222
{
23-
/* enter interrupt */
24-
rt_interrupt_enter();
23+
/* enter interrupt */
24+
rt_interrupt_enter();
2525

26-
rt_tick_increase();
26+
rt_tick_increase();
2727

28-
/* leave interrupt */
29-
rt_interrupt_leave();
28+
/* leave interrupt */
29+
rt_interrupt_leave();
3030
}
3131

3232
/**
3333
* The function initial system timer interrupt.
3434
*/
3535
void rt_hw_system_timer_init(void)
3636
{
37-
// initial system timer interrupt, map local timer interrupt to INT14
37+
// initial system timer interrupt, map local timer interrupt to INT14
3838
gpCGEM_regs->INTMUX3 = (CSL_GEM_TINTLN<<CSL_CGEM_INTMUX3_INTSEL14_SHIFT);
3939
// enable CPU INT14
4040
CPU_interrupt_enable(1<<14);

libcpu/ti-dsp/c6x/c66xx.h

Lines changed: 44 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -21,60 +21,60 @@
2121

2222
struct rt_hw_register
2323
{
24-
RT_REG_PAIR(b17, b16);
25-
RT_REG_PAIR(b19, b18);
26-
RT_REG_PAIR(b21, b20);
27-
RT_REG_PAIR(b23, b22);
28-
RT_REG_PAIR(b25, b24);
29-
RT_REG_PAIR(b27, b26);
30-
RT_REG_PAIR(b29, b28);
31-
RT_REG_PAIR(b31, b30);
24+
RT_REG_PAIR(b17, b16);
25+
RT_REG_PAIR(b19, b18);
26+
RT_REG_PAIR(b21, b20);
27+
RT_REG_PAIR(b23, b22);
28+
RT_REG_PAIR(b25, b24);
29+
RT_REG_PAIR(b27, b26);
30+
RT_REG_PAIR(b29, b28);
31+
RT_REG_PAIR(b31, b30);
3232

33-
RT_REG_PAIR(b1, b0);
34-
RT_REG_PAIR(b3, b2);
35-
RT_REG_PAIR(b5, b4);
36-
RT_REG_PAIR(b7, b6);
37-
RT_REG_PAIR(b9, b8);
38-
RT_REG_PAIR(b11, b10);
39-
RT_REG_PAIR(b13, b12);
33+
RT_REG_PAIR(b1, b0);
34+
RT_REG_PAIR(b3, b2);
35+
RT_REG_PAIR(b5, b4);
36+
RT_REG_PAIR(b7, b6);
37+
RT_REG_PAIR(b9, b8);
38+
RT_REG_PAIR(b11, b10);
39+
RT_REG_PAIR(b13, b12);
40+
41+
RT_REG_PAIR(a17, a16);
42+
RT_REG_PAIR(a19, a18);
43+
RT_REG_PAIR(a21, a20);
44+
RT_REG_PAIR(a23, a22);
45+
RT_REG_PAIR(a25, a24);
46+
RT_REG_PAIR(a27, a26);
47+
RT_REG_PAIR(a29, a28);
48+
RT_REG_PAIR(a31, a30);
4049

41-
RT_REG_PAIR(a17, a16);
42-
RT_REG_PAIR(a19, a18);
43-
RT_REG_PAIR(a21, a20);
44-
RT_REG_PAIR(a23, a22);
45-
RT_REG_PAIR(a25, a24);
46-
RT_REG_PAIR(a27, a26);
47-
RT_REG_PAIR(a29, a28);
48-
RT_REG_PAIR(a31, a30);
50+
RT_REG_PAIR(a1, a0);
51+
RT_REG_PAIR(a3, a2);
52+
RT_REG_PAIR(a5, a4);
53+
RT_REG_PAIR(a7, a6);
54+
RT_REG_PAIR(a9, a8);
55+
RT_REG_PAIR(a11, a10);
56+
RT_REG_PAIR(a13, a12);
4957

50-
RT_REG_PAIR(a1, a0);
51-
RT_REG_PAIR(a3, a2);
52-
RT_REG_PAIR(a5, a4);
53-
RT_REG_PAIR(a7, a6);
54-
RT_REG_PAIR(a9, a8);
55-
RT_REG_PAIR(a11, a10);
56-
RT_REG_PAIR(a13, a12);
57-
58-
RT_REG_PAIR(a15, a14);
59-
RT_REG_PAIR(sp, dp);
58+
RT_REG_PAIR(a15, a14);
59+
RT_REG_PAIR(sp, dp);
6060
};
6161

6262
struct rt_hw_exp_stack_register
6363
{
64-
RT_REG_PAIR(tsr, orig_a4);
65-
RT_REG_PAIR(rilc, ilc);
66-
RT_REG_PAIR(pc, csr);
64+
RT_REG_PAIR(tsr, orig_a4);
65+
RT_REG_PAIR(rilc, ilc);
66+
RT_REG_PAIR(pc, csr);
6767
struct rt_hw_register hw_register;
6868
};
6969

70-
#define __dint() asm(" DINT")
71-
#define __rint() asm(" RINT")
72-
#define __system_call() asm(" SWE")
73-
#define __enter_idle() asm(" IDLE")
74-
#define __nop() asm(" NOP")
75-
#define __mfence() asm(" MFENCE")
70+
#define __dint() asm(" DINT")
71+
#define __rint() asm(" RINT")
72+
#define __system_call() asm(" SWE")
73+
#define __enter_idle() asm(" IDLE")
74+
#define __nop() asm(" NOP")
75+
#define __mfence() asm(" MFENCE")
7676

77-
#define __SYSREG(ADDR, TYPE) (*(volatile TYPE*)(ADDR))
78-
#define __SYSREGA(ADDR, TYPE) ((volatile TYPE*)(ADDR))
77+
#define __SYSREG(ADDR, TYPE) (*(volatile TYPE*)(ADDR))
78+
#define __SYSREGA(ADDR, TYPE) ((volatile TYPE*)(ADDR))
7979

8080
#endif /* __C66XX_H__ */

0 commit comments

Comments
 (0)