aboutsummaryrefslogtreecommitdiffstats
path: root/src/templates/chcore.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/templates/chcore.c')
-rw-r--r--src/templates/chcore.c10
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.