aboutsummaryrefslogtreecommitdiffstats
path: root/demos/Win32-MinGW/chcore.h
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-01-10 09:42:46 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-01-10 09:42:46 +0000
commit791d101af5ce38335694b882149449c83f650fda (patch)
treeeb7e3779456602e9ab3b85b6bb30a42c33d8861f /demos/Win32-MinGW/chcore.h
parent49fe48fd7a816f46eb50a52342d14173ffbd0c1e (diff)
downloadChibiOS-791d101af5ce38335694b882149449c83f650fda.tar.gz
ChibiOS-791d101af5ce38335694b882149449c83f650fda.tar.bz2
ChibiOS-791d101af5ce38335694b882149449c83f650fda.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@602 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'demos/Win32-MinGW/chcore.h')
-rw-r--r--demos/Win32-MinGW/chcore.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/demos/Win32-MinGW/chcore.h b/demos/Win32-MinGW/chcore.h
index 2a9fe7de8..5f9f35716 100644
--- a/demos/Win32-MinGW/chcore.h
+++ b/demos/Win32-MinGW/chcore.h
@@ -159,9 +159,10 @@ typedef struct {
#define sys_enable_from_isr()
/**
- * Does nothing in this simulator.
+ * In the simulator this does a polling pass on the simulated interrupt
+ * sources.
*/
-#define sys_wait_for_interrupt()
+#define sys_wait_for_interrupt() ChkIntSources()
/**
* IRQ handler function modifier.
@@ -174,6 +175,8 @@ extern "C" {
__attribute__((fastcall)) void sys_puts(char *msg);
__attribute__((fastcall)) void sys_switch(Thread *otp, Thread *ntp);
__attribute__((fastcall)) void sys_halt(void);
+ void InitCore(void);
+ void ChkIntSources(void);
void threadexit(void);
#ifdef __cplusplus
}