Skip to content

Commit 341e52d

Browse files
committed
修改格式
1 parent 2b13e2f commit 341e52d

File tree

4 files changed

+304
-306
lines changed

4 files changed

+304
-306
lines changed

bsp/ti-tms320c6678/applications/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,6 @@ void main(void)
7575
/* startup RT-Thread RTOS */
7676
rtthread_startup();
7777

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

bsp/ti-tms320c6678/driver/drv_timer.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ void rt_hw_systick_isr(void)
3535
void rt_hw_system_timer_init(void)
3636
{
3737
// initial system timer interrupt, map local timer interrupt to INT14
38-
gpCGEM_regs->INTMUX3 = (CSL_GEM_TINTLN<<CSL_CGEM_INTMUX3_INTSEL14_SHIFT);
38+
gpCGEM_regs->INTMUX3=(CSL_GEM_TINTLN<<CSL_CGEM_INTMUX3_INTSEL14_SHIFT);
3939
// enable CPU INT14
4040
CPU_interrupt_enable(1<<14);
4141

@@ -55,10 +55,10 @@ void rt_hw_system_timer_start(void)
5555
gpBootCfgRegs->TOUTSEL = (DNUM*2)<<CSL_BOOTCFG_TOUTSEL_TOUTSEL0_SHIFT;
5656

5757
// configure the timer to generate clocks and interrupts
58-
tmrCfg.timer_num= DNUM;
59-
tmrCfg.timerMode= TIMER_PERIODIC_CLOCK;
60-
tmrCfg.period= (unsigned long long) RT_TICK_PER_SECOND*gDSP_Core_Speed_Hz/6000;
61-
tmrCfg.reload_period= 0;
58+
tmrCfg.timer_num=DNUM;
59+
tmrCfg.timerMode=TIMER_PERIODIC_CLOCK;
60+
tmrCfg.period = (unsigned long long) RT_TICK_PER_SECOND*gDSP_Core_Speed_Hz/6000;
61+
tmrCfg.reload_period=0;
6262

6363
// initial timer
6464
Timer64_Init(&tmrCfg);

libcpu/ti-dsp/c6x/cpuport.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ RT_WEAK void rt_hw_cpu_shutdown(void)
3737

3838
void nested_exception_handler(void)
3939
{
40-
for ( ; ; );
40+
for(;;){}
4141
}
4242

4343
/*------------ hw_nmi_handler() function --------------------------------------
@@ -48,7 +48,7 @@ void nested_exception_handler(void)
4848
-----------------------------------------------------------------------------*/
4949
void hw_nmi_handler(struct rt_hw_exp_stack_register *regs)
5050
{
51-
for ( ; ; );
51+
for(;;){}
5252
}
5353

5454
/*------------ hw_bad_handler() function --------------------------------------
@@ -59,7 +59,7 @@ void hw_nmi_handler(struct rt_hw_exp_stack_register *regs)
5959
-----------------------------------------------------------------------------*/
6060
void hw_bad_handler(void)
6161
{
62-
for ( ; ; );
62+
for(;;){}
6363
}
6464

6565
/*------------ hw_int4_handler() function -------------------------------------
@@ -181,7 +181,7 @@ void hw_int13_handler(void)
181181
void hw_int14_handler(void)
182182
{
183183
extern void rt_hw_systick_isr();
184-
rt_hw_systick_isr();
184+
rt_hw_systick_isr();
185185
}
186186

187187
/*------------ hw_int15_handler() function ------------------------------------

0 commit comments

Comments
 (0)