From 9b4189aac0531438a1a5d4aaddd0e77eddf70361 Mon Sep 17 00:00:00 2001 From: Heesub Shin Date: Tue, 21 Mar 2017 13:31:44 +0900 Subject: [PATCH] s5j/timerisr: remove invalid sanity check S5J has a tick count buffer of 32bits for every local tick counters. So, there is no point in checking if it is greater than 24bits. I think it came from some other code the original author refered to. Change-Id: Ie681e0d76f0a8f57a282736eb7ce19b6a2bce054 Signed-off-by: Heesub Shin --- os/arch/arm/src/s5j/s5j_timerisr.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/os/arch/arm/src/s5j/s5j_timerisr.c b/os/arch/arm/src/s5j/s5j_timerisr.c index bdb3c84..16ce63b 100644 --- a/os/arch/arm/src/s5j/s5j_timerisr.c +++ b/os/arch/arm/src/s5j/s5j_timerisr.c @@ -74,18 +74,8 @@ * The timer counts at the rate SYSCLK_FREQUENCY as defined in the board.h * header file. */ - #define SYSTICK_RELOAD ((SYSCLK_FREQUENCY / CLK_TCK) - 1) -/* - * The size of the reload field is 24 bits. Verify that the reload value - * will fit in the reload register. - */ - -#if SYSTICK_RELOAD > 0x00ffffff -#error "SYSTICK_RELOAD exceeds the range of the RELOAD register" -#endif - /**************************************************************************** * Private Types ****************************************************************************/ -- 2.7.4