void GUI_X_WaitEvent(void) { _pGUITask = OS_GetpCurrentTask(); OS_WaitEvent(1); }
void sys_thread_exit( void ) { // Terminate the current/calling task OS_TerminateTask(OS_GetpCurrentTask()); }