Skip to content

Commit 87598c7

Browse files
committed
修改格式
1 parent cbc0e1f commit 87598c7

File tree

5 files changed

+7
-14
lines changed

5 files changed

+7
-14
lines changed

bsp/ti-tms320c6678/applications/board.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ void rt_hw_board_init(void)
2727
rt_hw_interrupt_init();
2828

2929
// initial system timer
30-
hw_system_timer_init();
30+
rt_hw_system_timer_init();
3131

3232
/* initialize memory system */
3333
rt_kprintf("heap: 0x%08x - 0x%08x\n", RT_HW_HEAP_BEGIN, RT_HW_HEAP_END);
3434
rt_system_heap_init(RT_HW_HEAP_BEGIN, RT_HW_HEAP_END);
3535

36-
hw_system_timer_start();
36+
rt_hw_system_timer_start();
3737
}

bsp/ti-tms320c6678/driver/drv_timer.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ void rt_hw_systick_isr(void)
3232
/**
3333
* The function initial system timer interrupt.
3434
*/
35-
void hw_system_timer_init(void)
35+
void rt_hw_system_timer_init(void)
3636
{
3737
// initial system timer interrupt, map local timer interrupt to INT14
3838
gpCGEM_regs->INTMUX3 = (CSL_GEM_TINTLN<<CSL_CGEM_INTMUX3_INTSEL14_SHIFT);
@@ -47,7 +47,7 @@ void hw_system_timer_init(void)
4747
* Use local timer (==DNUM of a core) to generate a clock on TIMO0,interrupts are generated as well
4848
*
4949
*/
50-
void hw_system_timer_start(void)
50+
void rt_hw_system_timer_start(void)
5151
{
5252
Timer64_Config tmrCfg;
5353

bsp/ti-tms320c6678/driver/drv_timer.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
#ifndef __SYS_TIMER_H__
1212
#define __SYS_TIMER_H__
1313

14-
void hw_system_timer_init(void);
14+
void rt_hw_system_timer_init(void);
1515

16-
void hw_system_timer_start(void);
16+
void rt_hw_system_timer_start(void);
1717

1818
#endif /* __SYS_TIMER_H__ */
1919

libcpu/ti-dsp/c6x/c66xx.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,6 @@
1919
#define REG_PAIR(odd, even) unsigned long even; unsigned long odd
2020
#endif
2121

22-
/*
23-
* this struct defines the way the registers are stored on the
24-
* stack during a system call. fields defined with REG_PAIR
25-
* are saved and restored using double-word memory operations
26-
* which means the word ordering of the pair depends on endianess.
27-
*/
28-
2922
struct rt_hw_register
3023
{
3124
REG_PAIR(b17, b16);

libcpu/ti-dsp/c6x/context.asm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ rt_hw_enable_exception:
4545
DINT
4646
MVC .S2 TSR,B0
4747
MVC .S2 B3,NRP
48-
MVK .L2 0xc,B1
48+
MVK .L2 0xC,B1
4949
OR .D2 B0,B1,B0
5050
MVC .S2 B0,TSR ; Set GEE and XEN in TSR
5151
B .S2 NRP

0 commit comments

Comments
 (0)