aboutsummaryrefslogtreecommitdiffstats
path: root/demos/Win32-MinGW/chcore.h
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-01-16 15:41:08 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-01-16 15:41:08 +0000
commita9b4e8fc7225e8e2f26554b388f9d069d8f05b5e (patch)
tree5460fa94e99d7c5c5a2c60bfeabd7e825e6e2246 /demos/Win32-MinGW/chcore.h
parenta50a5627b641b3c6b82c5fbdf708eb16fafbe8f8 (diff)
downloadChibiOS-a9b4e8fc7225e8e2f26554b388f9d069d8f05b5e.tar.gz
ChibiOS-a9b4e8fc7225e8e2f26554b388f9d069d8f05b5e.tar.bz2
ChibiOS-a9b4e8fc7225e8e2f26554b388f9d069d8f05b5e.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@621 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'demos/Win32-MinGW/chcore.h')
-rw-r--r--demos/Win32-MinGW/chcore.h21
1 files changed, 18 insertions, 3 deletions
diff --git a/demos/Win32-MinGW/chcore.h b/demos/Win32-MinGW/chcore.h
index 70efa7edb..40555df63 100644
--- a/demos/Win32-MinGW/chcore.h
+++ b/demos/Win32-MinGW/chcore.h
@@ -144,6 +144,16 @@ typedef struct {
#define SYS_IRQ_HANDLER
/**
+ * Simulator initialization.
+ */
+#define sys_init() InitCore()
+
+/**
+ * Does nothing in this simulator.
+ */
+#define sys_disable_all()
+
+/**
* Does nothing in this simulator.
*/
#define sys_disable()
@@ -156,17 +166,22 @@ typedef struct {
/**
* Does nothing in this simulator.
*/
-#define sys_disable_from_isr()
+#define sys_lock()
/**
* Does nothing in this simulator.
*/
-#define sys_enable_from_isr()
+#define sys_unlock()
/**
* Does nothing in this simulator.
*/
-#define sys_disable_all()
+#define sys_lock_from_isr()
+
+/**
+ * Does nothing in this simulator.
+ */
+#define sys_unlock_from_isr()
/**
* In the simulator this does a polling pass on the simulated interrupt