diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-10-24 10:31:05 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-10-25 07:26:41 +0200 |
commit | 0ddffb766c0c2504d4dd0545ee6f616ce3fc66e2 (patch) | |
tree | 1a2d4ab494b4fd94786d8c17142948ba1de2b691 /cpukit | |
parent | rtems: rtems_clock_get_ticks_per_second() (diff) | |
download | rtems-0ddffb766c0c2504d4dd0545ee6f616ce3fc66e2.tar.bz2 |
confdefs: CONFIGURE_MICROSECONDS_PER_TICK
Reject non-positive CONFIGURE_MICROSECONDS_PER_TICK values.
Diffstat (limited to 'cpukit')
-rwxr-xr-x | cpukit/sapi/include/confdefs.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cpukit/sapi/include/confdefs.h b/cpukit/sapi/include/confdefs.h index 219260e652..47b7d9aacb 100755 --- a/cpukit/sapi/include/confdefs.h +++ b/cpukit/sapi/include/confdefs.h @@ -2291,6 +2291,10 @@ extern rtems_initialization_tasks_table Initialization_tasks[]; #warning "The clock ticks per second is not an integer" #endif + #if CONFIGURE_MICROSECONDS_PER_TICK <= 0 + #error "The CONFIGURE_MICROSECONDS_PER_TICK must be positive" + #endif + #define _CONFIGURE_TICKS_PER_SECOND (1000000 / CONFIGURE_MICROSECONDS_PER_TICK) /** The configures the number of clock ticks per timeslice. */ |