From a9b4e8fc7225e8e2f26554b388f9d069d8f05b5e Mon Sep 17 00:00:00 2001 From: gdisirio Date: Fri, 16 Jan 2009 15:41:08 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@621 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- demos/Win32-MinGW/chcore.h | 21 ++++++++++++++++++--- demos/Win32-MinGW/main.c | 2 -- 2 files changed, 18 insertions(+), 5 deletions(-) (limited to 'demos') 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 @@ -143,6 +143,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. */ @@ -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 diff --git a/demos/Win32-MinGW/main.c b/demos/Win32-MinGW/main.c index eaf2504dd..a72d7b4da 100644 --- a/demos/Win32-MinGW/main.c +++ b/demos/Win32-MinGW/main.c @@ -279,8 +279,6 @@ static evhandler_t fhandlers[2] = { int main(void) { EventListener c1fel, c2fel; - InitCore(); - // Startup ChibiOS/RT. chSysInit(); -- cgit v1.2.3