File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed
bsp/ti-tms320c6678/driver Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -35,9 +35,9 @@ 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
40- CPU_interrupt_enable (1 << 14 );
40+ CPU_interrupt_enable (1 << 14 );
4141
4242 return ;
4343}
@@ -52,12 +52,12 @@ void rt_hw_system_timer_start(void)
5252 Timer64_Config tmrCfg ;
5353
5454 // select output on TIMO0 from local timer.
55- gpBootCfgRegs -> TOUTSEL = (DNUM * 2 )<< CSL_BOOTCFG_TOUTSEL_TOUTSEL0_SHIFT ;
55+ gpBootCfgRegs -> TOUTSEL = (DNUM * 2 ) << CSL_BOOTCFG_TOUTSEL_TOUTSEL0_SHIFT ;
5656
5757 // configure the timer to generate clocks and interrupts
5858 tmrCfg .timer_num = DNUM ;
5959 tmrCfg .timerMode = TIMER_PERIODIC_CLOCK ;
60- tmrCfg .period = (unsigned long long ) RT_TICK_PER_SECOND * gDSP_Core_Speed_Hz / 6000 ;
60+ tmrCfg .period = (unsigned long long ) RT_TICK_PER_SECOND * gDSP_Core_Speed_Hz / 6000 ;
6161 tmrCfg .reload_period = 0 ;
6262
6363 // initial timer
Original file line number Diff line number Diff line change @@ -106,7 +106,6 @@ void show_regs(struct rt_hw_exp_stack_register *regs)
106106 regs -> hw_register .a31 , regs -> hw_register .b31 );
107107}
108108
109-
110109void do_trap (struct rt_exception_info * except_info , struct rt_hw_exp_stack_register * regs )
111110{
112111 rt_kprintf ("Enter exception: %s\n" , except_info -> kernel_str );
@@ -148,7 +147,9 @@ static int process_iexcept(struct rt_hw_exp_stack_register *regs)
148147 if (* (unsigned int * )regs -> pc == BKPT_OPCODE )
149148 {
150149 /* This is a breakpoint */
151- struct rt_exception_info bkpt_exception = { " - undefined instruction" , ABORT_TYPE_UNDDEF , ABORT_BRKPT_ILL };
150+ struct rt_exception_info bkpt_exception = \
151+ { " - undefined instruction" ,\
152+ ABORT_TYPE_UNDDEF , ABORT_BRKPT_ILL };
152153 do_trap (& bkpt_exception , regs );
153154 iexcept_report &= ~(0xFF );
154155 set_iexcept (iexcept_report );
@@ -299,7 +300,7 @@ static struct rt_exception_info except_table[128] = {
299300 */
300301static void process_except (struct rt_hw_exp_stack_register * regs )
301302{
302- int except_num ;
303+ int except_num = 0 ;
303304 int bank = 0 ;
304305 int i = 0 ;
305306
You can’t perform that action at this time.
0 commit comments