From 1ee88fb0f6ed22e5c40a65ba134aa9ad0c9892ab Mon Sep 17 00:00:00 2001 From: Tony Wu Date: Tue, 17 Oct 2017 11:18:09 +0800 Subject: [PATCH] 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 --- targets/TARGET_Realtek/TARGET_AMEBA/us_ticker.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/targets/TARGET_Realtek/TARGET_AMEBA/us_ticker.c b/targets/TARGET_Realtek/TARGET_AMEBA/us_ticker.c index 504eb7c1bd9..3c0b22faf95 100644 --- a/targets/TARGET_Realtek/TARGET_AMEBA/us_ticker.c +++ b/targets/TARGET_Realtek/TARGET_AMEBA/us_ticker.c @@ -21,7 +21,7 @@ #define TICK_READ_FROM_CPU 0 // 1: read tick from CPU, 0: read tick from G-Timer #define SYS_TIM_ID 1 // the G-Timer ID for System -#define APP_TIM_ID 6 // the G-Timer ID for Application +#define APP_TIM_ID 2 // the G-Timer ID for Application /* * For RTL8195AM, clock source is 32k