File tree Expand file tree Collapse file tree 4 files changed +304
-306
lines changed Expand file tree Collapse file tree 4 files changed +304
-306
lines changed Original file line number Diff line number Diff line change @@ -75,6 +75,6 @@ void main(void)
7575 /* startup RT-Thread RTOS */
7676 rtthread_startup ();
7777
78- for ( ; ; );
78+ for (;;){}
7979}
8080
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ void rt_hw_systick_isr(void)
3535void 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 );
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ RT_WEAK void rt_hw_cpu_shutdown(void)
3737
3838void 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-----------------------------------------------------------------------------*/
4949void 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-----------------------------------------------------------------------------*/
6060void 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)
181181void hw_int14_handler (void )
182182{
183183extern void rt_hw_systick_isr ();
184- rt_hw_systick_isr ();
184+ rt_hw_systick_isr ();
185185}
186186
187187/*------------ hw_int15_handler() function ------------------------------------
You can’t perform that action at this time.
0 commit comments