diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2009-01-05 15:07:55 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2009-01-05 15:07:55 +0000 |
commit | e55a45c9e8eb2d89878ae935dbf4892566374c86 (patch) | |
tree | 1abfa1bd16adc4bafc042b72f9cea09d29094761 /src/templates/chcore.c | |
parent | bbabbf4ac29fc00d38a767cf07db01cf642e937d (diff) | |
download | ChibiOS-e55a45c9e8eb2d89878ae935dbf4892566374c86.tar.gz ChibiOS-e55a45c9e8eb2d89878ae935dbf4892566374c86.tar.bz2 ChibiOS-e55a45c9e8eb2d89878ae935dbf4892566374c86.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@583 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'src/templates/chcore.c')
-rw-r--r-- | src/templates/chcore.c | 39 |
1 files changed, 27 insertions, 12 deletions
diff --git a/src/templates/chcore.c b/src/templates/chcore.c index dbcf26ced..496ffc8fa 100644 --- a/src/templates/chcore.c +++ b/src/templates/chcore.c @@ -26,21 +26,36 @@ /*
* This file is a template of the system driver functions provided by a port.
+ * Some of the following functions may be implemented as macros in chcore.h if
+ * the implementer decides there is an advantage in doing so, as example
+ * because performance concerns.
*/
-/**
- * This function implements the idle thread infinite loop. The function should
- * 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.
- * @param p the thread parameter, unused in this scenario
- * @note Implementation should declare this function as a weak symbol in order
- * to allow applications to re-implement it.
- */
-void _idle(void *p) {
+void sys_puts(char *msg) {
+}
+
+void sys_switch(Thread *otp, Thread *ntp) {
+}
+
+void sys_enable(void) {
+}
+
+void sys_disable(void) {
+}
+
+void sys_disable_from_isr(void) {
+}
+
+void sys_enable_from_isr(void) {
+}
+
+void sys_wait_for_interrupt(void) {
+}
+
+void sys_halt(void) {
- while (TRUE)
- ;
+ while(TRUE) {
+ }
}
/** @} */
|