s5j/timerisr: remove invalid sanity check
authorHeesub Shin <heesub.shin@samsung.com>
Tue, 21 Mar 2017 04:31:44 +0000 (13:31 +0900)
committerHeesub Shin <heesub.shin@samsung.com>
Mon, 17 Apr 2017 10:52:06 +0000 (19:52 +0900)
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 <heesub.shin@samsung.com>
os/arch/arm/src/s5j/s5j_timerisr.c

index bdb3c84..16ce63b 100644 (file)
  * 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
  ****************************************************************************/