aboutsummaryrefslogtreecommitdiffstats
path: root/demos/Win32-MinGW
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
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')
-rw-r--r--demos/Win32-MinGW/chconf.h2
-rw-r--r--demos/Win32-MinGW/chcore.h7
-rw-r--r--demos/Win32-MinGW/main.c1
3 files changed, 6 insertions, 4 deletions
diff --git a/demos/Win32-MinGW/chconf.h b/demos/Win32-MinGW/chconf.h
index 5b487dbe7..c00b4873f 100644
--- a/demos/Win32-MinGW/chconf.h
+++ b/demos/Win32-MinGW/chconf.h
@@ -120,7 +120,7 @@
* provide the \p __heap_base__ and \p __heap_end__ symbols.
* @note requires \p CH_USE_HEAP.
*/
-#define CH_HEAP_SIZE 16384
+#define CH_HEAP_SIZE 0x20000
/** Configuration option: enforces the use of the C-runtime \p malloc() and
* \p free() functions as backend for the system heap allocator.*/
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
}
diff --git a/demos/Win32-MinGW/main.c b/demos/Win32-MinGW/main.c
index 5de6ee938..eaf2504dd 100644
--- a/demos/Win32-MinGW/main.c
+++ b/demos/Win32-MinGW/main.c
@@ -34,7 +34,6 @@ static msg_t ConsoleThread(void *arg);
msg_t TestThread(void *p);
-void InitCore(void);
extern FullDuplexDriver COM1, COM2;
#define cprint(msg) chMsgSend(cdtp, (msg_t)msg)