#ifndef __UI_H__ #define __UI_H__ #ifdef __cplusplus extern "C" { #endif #include "stdint.h" #include "statemachine.h" enum UI_EVENTS { EV_UI_TICK_10MS = EV_USER_FIRST, EV_UI_TICK_100MS, EV_UI_TICK_1S, EV_UI_KEY_PRESS = 0x0100, EV_UI_KEY_PRESS_MAX = 0x01FF, EV_UI_KEY_REL = 0x0200, EV_UI_KEY_REL_MAX = 0x02FF, }; extern void UI_Init(); extern void UI_EventProc(uint16_t event); extern void UI_EventSend(uint16_t event); extern void UI_CheckEvent(); #ifdef __cplusplus } #endif #endif