diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2008-11-29 10:54:24 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2008-11-29 10:54:24 +0000 |
commit | b3e92dc72078603137a7182759419e2b801755b9 (patch) | |
tree | f6a55965ea67966ed2cb283ea7830a428878818d /src/templates/chcore.c | |
parent | 4c4689df98554b3089d1dd66c60f92deab9d1603 (diff) | |
download | ChibiOS-b3e92dc72078603137a7182759419e2b801755b9.tar.gz ChibiOS-b3e92dc72078603137a7182759419e2b801755b9.tar.bz2 ChibiOS-b3e92dc72078603137a7182759419e2b801755b9.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@521 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'src/templates/chcore.c')
-rw-r--r-- | src/templates/chcore.c | 10 |
1 files changed, 9 insertions, 1 deletions
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)
;
@@ -55,6 +57,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
* just disables the interrupts.
|