From b3e92dc72078603137a7182759419e2b801755b9 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sat, 29 Nov 2008 10:54:24 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@521 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- src/templates/chcore.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/templates/chcore.c') diff --git a/src/templates/chcore.c b/src/templates/chcore.c index 95427c161..40dd4315b 100644 --- a/src/templates/chcore.c +++ b/src/templates/chcore.c @@ -35,8 +35,10 @@ * put the processor in the lowest power mode capable to serve interrupts. * The priority is internally set to the minimum system value so that this * thread is executed only if there are no other ready threads in the system. + * @note Implementation should declare this function as a weak symbol in order + * to allow applications to re-implement it. */ -void _IdleThread(void *p) { +void _idle(void *p) { while (TRUE) ; @@ -54,6 +56,12 @@ void chSysHalt(void) { ; } +/** + * Enables the interrupts, it is only invoked once into \p chSysInit(). + */ +void chSysEnable(void) { +} + /** * Enters the ChibiOS/RT system mutual exclusion zone. The implementation is * architecture dependent, on single core systems usually this function usually -- cgit v1.2.3