diff options
| author | Alexey Brodkin <[email protected]> | 2022-10-16 17:29:54 +0400 |
|---|---|---|
| committer | Alexey Brodkin <[email protected]> | 2022-10-17 14:37:10 +0400 |
| commit | 4ee100eb8613406632ebd26d5257c81af4abcb0e (patch) | |
| tree | d06c83c4dcc29444633dcd9259eab63419cf0dc1 /bsp | |
| parent | 9fcd80a2a35baa6df7d323f061e009e8334c6a65 (diff) | |
ARC: BSP: Fix timer call-backs
In [1] we prefixed ARC Timer functions with "arc_"
and now we need to accommodate that change in RT-Thread
accordingly.
[1] https://github.com/foss-for-synopsys-dwc-arc-processors/embarc_bsp/commit/86a03d4bf99c8afad68c4c6a5941cda7a41dd4fe
Diffstat (limited to 'bsp')
| -rw-r--r-- | bsp/synopsys/boards/drivers/rt_board.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bsp/synopsys/boards/drivers/rt_board.c b/bsp/synopsys/boards/drivers/rt_board.c index 1e1b7e494b..5026394852 100644 --- a/bsp/synopsys/boards/drivers/rt_board.c +++ b/bsp/synopsys/boards/drivers/rt_board.c @@ -302,7 +302,7 @@ void rt_hw_board_init() static void rt_hw_timer_isr(int vector, void *param) { - timer_int_clear(BOARD_OS_TIMER_ID); + arc_timer_int_clear(BOARD_OS_TIMER_ID); rt_tick_increase(); } @@ -312,8 +312,8 @@ int rt_hw_timer_init(void) unsigned int cyc = BOARD_CPU_CLOCK / RT_TICK_PER_SECOND; int_disable(BOARD_OS_TIMER_INTNO); /* disable os timer interrupt */ - timer_stop(BOARD_OS_TIMER_ID); - timer_start(BOARD_OS_TIMER_ID, TIMER_CTRL_IE | TIMER_CTRL_NH, cyc); + arc_timer_stop(BOARD_OS_TIMER_ID); + arc_timer_start(BOARD_OS_TIMER_ID, TIMER_CTRL_IE | TIMER_CTRL_NH, cyc); int_handler_install(BOARD_OS_TIMER_INTNO, (INT_HANDLER_T)rt_hw_timer_isr); int_pri_set(BOARD_OS_TIMER_INTNO, INT_PRI_MIN + 1); /* currently, firq(INT_PRI_MIN) not supported*/ |
