aboutsummaryrefslogtreecommitdiffstats
path: root/src/templates/chcore.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2008-10-17 18:33:35 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2008-10-17 18:33:35 +0000
commit1d23eb296156769cff3e41bd7026db1cd2538664 (patch)
tree512bbaa17560196c09dcce171bcb28a367838542 /src/templates/chcore.c
parent3d3e5728aa1d14444b99732426d36f6375013727 (diff)
downloadChibiOS-1d23eb296156769cff3e41bd7026db1cd2538664.tar.gz
ChibiOS-1d23eb296156769cff3e41bd7026db1cd2538664.tar.bz2
ChibiOS-1d23eb296156769cff3e41bd7026db1cd2538664.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@474 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'src/templates/chcore.c')
-rw-r--r--src/templates/chcore.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/templates/chcore.c b/src/templates/chcore.c
index 2aaa0b06a..95427c161 100644
--- a/src/templates/chcore.c
+++ b/src/templates/chcore.c
@@ -55,6 +55,30 @@ void chSysHalt(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.
+ * @note The code in the system mutual exclusion zone must be as light and
+ * fast as possible, the system performance is affected by this.
+ * @note The use of system mutual exclusion zones are not recommended in
+ * the user code, it is a better idea to use the Semaphores instead.
+ */
+void chSysLock(void) {
+}
+
+/**
+ * Leaves the ChibiOS/RT system mutual exclusion zone. The implementation is
+ * architecture dependent, on single core systems usually this function usually
+ * just enables the interrupts.
+ * @note The code in the system mutual exclusion zone must be as light and
+ * fast as possible, the system performance is affected by this.
+ * @note The use of system mutual exclusion zones are not recommended in
+ * the user code, it is a better idea to use the Semaphores instead.
+ */
+void chSysUnlock(void) {
+}
+
+/**
* Context switch.
*/
void chSysSwitchI(Thread *otp, Thread *ntp) {}