diff options
-rw-r--r-- | demos/Win32-MinGW/chconf.h | 2 | ||||
-rw-r--r-- | demos/Win32-MinGW/chcore.h | 7 | ||||
-rw-r--r-- | demos/Win32-MinGW/main.c | 1 |
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)
|