gfxExit() fix for ChibiOS/RT 3.x
This commit is contained in:
parent
246b42c6eb
commit
5c14057e33
1 changed files with 2 additions and 1 deletions
|
@ -77,14 +77,15 @@ extern "C" {
|
||||||
#define gfxSystemTicks() chTimeNow()
|
#define gfxSystemTicks() chTimeNow()
|
||||||
#define gfxMutexInit(pmutex) chMtxInit(pmutex)
|
#define gfxMutexInit(pmutex) chMtxInit(pmutex)
|
||||||
#define gfxMutexExit(pmutex) chMtxUnlock()
|
#define gfxMutexExit(pmutex) chMtxUnlock()
|
||||||
|
#define gfxExit() chSysHalt()
|
||||||
#elif CH_KERNEL_MAJOR == 3
|
#elif CH_KERNEL_MAJOR == 3
|
||||||
#define gfxSystemTicks() chVTGetSystemTimeX()
|
#define gfxSystemTicks() chVTGetSystemTimeX()
|
||||||
#define gfxMutexInit(pmutex) chMtxObjectInit(pmutex)
|
#define gfxMutexInit(pmutex) chMtxObjectInit(pmutex)
|
||||||
#define gfxMutexExit(pmutex) chMtxUnlock(pmutex)
|
#define gfxMutexExit(pmutex) chMtxUnlock(pmutex)
|
||||||
|
#define gfxExit() osalSysHalt("gfx_exit")
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define gfxHalt(msg) { chDbgPanic(msg); chSysHalt(); }
|
#define gfxHalt(msg) { chDbgPanic(msg); chSysHalt(); }
|
||||||
#define gfxExit() chSysHalt()
|
|
||||||
#define gfxAlloc(sz) chHeapAlloc(0, sz)
|
#define gfxAlloc(sz) chHeapAlloc(0, sz)
|
||||||
#define gfxFree(ptr) chHeapFree(ptr)
|
#define gfxFree(ptr) chHeapFree(ptr)
|
||||||
#define gfxYield() chThdYield()
|
#define gfxYield() chThdYield()
|
||||||
|
|
Loading…
Add table
Reference in a new issue