2010-08-30 02:39:10 +00:00
|
|
|
/* ChibiOS/RT configuration file */
|
2010-08-10 03:11:02 +00:00
|
|
|
|
|
|
|
#ifndef _CHCONF_H_
|
|
|
|
#define _CHCONF_H_
|
|
|
|
|
|
|
|
#define CH_FREQUENCY 1000
|
|
|
|
#define CH_TIME_QUANTUM 20
|
|
|
|
#define CH_USE_NESTED_LOCKS FALSE
|
2010-08-30 02:39:10 +00:00
|
|
|
#define CH_MEMCORE_SIZE 0 /* Whole RAM */
|
2010-08-10 03:11:02 +00:00
|
|
|
#define CH_OPTIMIZE_SPEED TRUE
|
|
|
|
#define CH_USE_REGISTRY TRUE
|
|
|
|
#define CH_USE_WAITEXIT TRUE
|
2010-08-30 02:39:10 +00:00
|
|
|
#define CH_USE_SEMAPHORES FALSE
|
2010-08-10 03:11:02 +00:00
|
|
|
#define CH_USE_SEMAPHORES_PRIORITY FALSE
|
2010-08-30 02:39:10 +00:00
|
|
|
#define CH_USE_SEMSW FALSE
|
2010-08-10 03:11:02 +00:00
|
|
|
#define CH_USE_MUTEXES TRUE
|
|
|
|
#define CH_USE_CONDVARS TRUE
|
|
|
|
#define CH_USE_CONDVARS_TIMEOUT TRUE
|
2010-08-30 02:39:10 +00:00
|
|
|
#define CH_USE_EVENTS TRUE /* We use this! */
|
|
|
|
#define CH_USE_EVENTS_TIMEOUT TRUE /* We use this! */
|
2010-09-05 09:10:54 +00:00
|
|
|
#define CH_USE_MESSAGES FALSE
|
2010-08-10 03:11:02 +00:00
|
|
|
#define CH_USE_MESSAGES_PRIORITY FALSE
|
2010-08-30 02:39:10 +00:00
|
|
|
#define CH_USE_MAILBOXES FALSE
|
|
|
|
#define CH_USE_QUEUES FALSE
|
2010-08-10 03:11:02 +00:00
|
|
|
#define CH_USE_MEMCORE TRUE
|
|
|
|
#define CH_USE_HEAP TRUE
|
|
|
|
#define CH_USE_MALLOC_HEAP FALSE
|
2010-09-05 09:10:54 +00:00
|
|
|
#define CH_USE_MEMPOOLS FALSE
|
2010-08-30 02:39:10 +00:00
|
|
|
#define CH_USE_DYNAMIC FALSE
|
2010-08-10 03:11:02 +00:00
|
|
|
|
2010-08-30 02:39:10 +00:00
|
|
|
/* Debug options */
|
2010-08-10 03:11:02 +00:00
|
|
|
#define CH_DBG_ENABLE_CHECKS FALSE
|
|
|
|
#define CH_DBG_ENABLE_ASSERTS FALSE
|
|
|
|
#define CH_DBG_ENABLE_TRACE FALSE
|
|
|
|
#define CH_DBG_ENABLE_STACK_CHECK FALSE
|
|
|
|
#define CH_DBG_FILL_THREADS FALSE
|
|
|
|
#define CH_DBG_THREADS_PROFILING TRUE
|
|
|
|
|
|
|
|
#define THREAD_EXT_FIELDS \
|
|
|
|
struct { \
|
|
|
|
/* Add threads custom fields here.*/ \
|
|
|
|
};
|
|
|
|
|
|
|
|
#define THREAD_EXT_INIT(tp) { \
|
|
|
|
/* Add threads initialization code here.*/ \
|
|
|
|
}
|
|
|
|
|
|
|
|
#define THREAD_EXT_EXIT(tp) { \
|
|
|
|
/* Add threads finalization code here.*/ \
|
|
|
|
}
|
|
|
|
|
|
|
|
#define IDLE_LOOP_HOOK() { \
|
|
|
|
/* Idle loop code here.*/ \
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* _CHCONF_H_ */
|