EDF - OnePIC MCU  v1.1.0
source/base/include/OnePIC_switch.h
Go to the documentation of this file.
00001 
00007 // XXX Jerry Note: This ifndef/define/endif chain is needed to prevent multiple inclusion.
00008 #ifndef _EDF_SWITCH_H
00009 #define _EDF_SWITCH_H
00010 #include "bsp.h"
00011 
00020 typedef enum swState_tag {
00021     SW_PRESSED,
00022     SW_RELEASED
00023 } swState;
00024 
00025 extern uint8_t _pbState;
00026 extern swState _swState; 
00027 void switchTasks(void);
00028 uint8_t switchPressed(void);
00029 #endif // __SWITCH_H
00030