mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-23 00:59:12 +08:00
Ensure ticks per timeslice is greater than zero
This commit is contained in:
committed by
Joel Sherrill
parent
fd790b3431
commit
5ee87eee8a
@@ -70,6 +70,10 @@
|
||||
#warning "The clock ticks per second is not an integer"
|
||||
#endif
|
||||
|
||||
#if defined(CONFIGURE_TICKS_PER_TIMESLICE) && CONFIGURE_TICKS_PER_TIMESLICE <= 0
|
||||
#error "CONFIGURE_TICKS_PER_TIMESLICE shall be greater than zero"
|
||||
#endif
|
||||
|
||||
#if CONFIGURE_MICROSECONDS_PER_TICK <= 0
|
||||
#error "CONFIGURE_MICROSECONDS_PER_TICK must be positive"
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user