From 1d23eb296156769cff3e41bd7026db1cd2538664 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Fri, 17 Oct 2008 18:33:35 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@474 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- src/templates/chcore.h | 24 ++---------------------- 1 file changed, 2 insertions(+), 22 deletions(-) (limited to 'src/templates/chcore.h') diff --git a/src/templates/chcore.h b/src/templates/chcore.h index c84a237f8..1be2d7145 100644 --- a/src/templates/chcore.h +++ b/src/templates/chcore.h @@ -83,28 +83,6 @@ typedef struct { */ #define WorkingArea(s, n) uint8_t s[UserStackSize(n)]; -/** - * Enters the ChibiOS/RT system mutual exclusion zone, the implementation is - * architecture dependent, on single core systems usually this function - * just disables the interrupts. - * @note The code in the system mutual exclusion zone must be as light and - * fast as possible, the system performance is affected by this. - * @note The use of system mutual exclusion zones are not recommended in - * the user code, it is a better idea to use the Semaphores instead. - */ -#define chSysLock() - -/** - * Leaves the ChibiOS/RT system mutual exclusion zone, the implementation is - * architecture dependent, on single core systems usually this function - * just enables the interrupts. - * @note The code in the system mutual exclusion zone must be as light and - * fast as possible, the system performance is affected by this. - * @note The use of system mutual exclusion zones are not recommended in - * the user code, it is a better idea to use the Semaphores instead. - */ -#define chSysUnlock() - /** * Enables the interrupts, it is only invoked once into \p chSysInit(). */ @@ -130,6 +108,8 @@ extern "C" { #endif void _IdleThread(void *p); void chSysHalt(void); + void chSysLock(void); + void chSysUnlock(void); void chSysSwitchI(Thread *otp, Thread *ntp); void chSysPuts(char *msg); #ifdef __cplusplus -- cgit v1.2.3