rtems: Allow site local override of the default tick period

Add to configure/CONFIG_SITE.local:

 OP_SYS_CFLAGS += -DCONFIGURE_MICROSECONDS_PER_TICK=1000
This commit is contained in:
Chris Johns
2023-07-13 15:34:27 +10:00
committed by Andrew Johnson
parent 9866815dab
commit c5f5e4e508

View File

@ -26,7 +26,14 @@ extern void *POSIX_Init(void *argument);
#define CONFIGURE_POSIX_INIT_THREAD_STACK_SIZE (64*1024)
#define CONFIGURE_MAXIMUM_PERIODS 5
/*
* Override in configure/CONFIG_SITE.local with:
*
* OP_SYS_CFLAGS += -DCONFIGURE_MICROSECONDS_PER_TICK=1000
*/
#ifndef CONFIGURE_MICROSECONDS_PER_TICK
#define CONFIGURE_MICROSECONDS_PER_TICK 10000
#endif
#define CONFIGURE_MALLOC_STATISTICS 1
/* MINIMUM_STACK_SIZE == 8K */
#define CONFIGURE_EXTRA_TASK_STACKS (4000 * RTEMS_MINIMUM_STACK_SIZE)