Skip to content

Commit 1ee88fb

Browse files
tung7970Archcady
authored andcommitted
rtl8195am - fix us_ticker collision and race
Switch to timer 2 for us_ticker for timer 6 might be used for power saving. Signed-off-by: Tony Wu <[email protected]>
1 parent cbb8a1f commit 1ee88fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

targets/TARGET_Realtek/TARGET_AMEBA/us_ticker.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
#define TICK_READ_FROM_CPU 0 // 1: read tick from CPU, 0: read tick from G-Timer
2323
#define SYS_TIM_ID 1 // the G-Timer ID for System
24-
#define APP_TIM_ID 6 // the G-Timer ID for Application
24+
#define APP_TIM_ID 2 // the G-Timer ID for Application
2525

2626
/*
2727
* For RTL8195AM, clock source is 32k

0 commit comments

Comments
 (0)