diff options
author | Joel Bodenmann <joel@unormal.org> | 2014-05-19 22:43:39 +0200 |
---|---|---|
committer | Joel Bodenmann <joel@unormal.org> | 2014-05-19 22:43:39 +0200 |
commit | 5c14057e33f63ef218e97b4bb611ef7c09f0bcf2 (patch) | |
tree | 7a6fc51b07516236624caf59b9807d9a5f5345a2 /src/gos | |
parent | 246b42c6ebc38f61cde082eeeaf19852edb4011c (diff) | |
download | uGFX-5c14057e33f63ef218e97b4bb611ef7c09f0bcf2.tar.gz uGFX-5c14057e33f63ef218e97b4bb611ef7c09f0bcf2.tar.bz2 uGFX-5c14057e33f63ef218e97b4bb611ef7c09f0bcf2.zip |
gfxExit() fix for ChibiOS/RT 3.x
Diffstat (limited to 'src/gos')
-rw-r--r-- | src/gos/chibios.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gos/chibios.h b/src/gos/chibios.h index e0b95707..a07c72ab 100644 --- a/src/gos/chibios.h +++ b/src/gos/chibios.h @@ -77,14 +77,15 @@ extern "C" { #define gfxSystemTicks() chTimeNow() #define gfxMutexInit(pmutex) chMtxInit(pmutex) #define gfxMutexExit(pmutex) chMtxUnlock() + #define gfxExit() chSysHalt() #elif CH_KERNEL_MAJOR == 3 #define gfxSystemTicks() chVTGetSystemTimeX() #define gfxMutexInit(pmutex) chMtxObjectInit(pmutex) #define gfxMutexExit(pmutex) chMtxUnlock(pmutex) + #define gfxExit() osalSysHalt("gfx_exit") #endif #define gfxHalt(msg) { chDbgPanic(msg); chSysHalt(); } -#define gfxExit() chSysHalt() #define gfxAlloc(sz) chHeapAlloc(0, sz) #define gfxFree(ptr) chHeapFree(ptr) #define gfxYield() chThdYield() |