00001 /***************************************************************************/ 00035 #ifndef __EMDRV_GPIOINTERRUPT_H 00036 #define __EMDRV_GPIOINTERRUPT_H 00037 00038 #include "stdint.h" 00039 00040 #ifdef __cplusplus 00041 extern "C" { 00042 #endif 00043 00044 /***************************************************************************/ 00049 /***************************************************************************/ 00055 /******************************************************************************* 00056 ******************************* TYPEDEFS ********************************** 00057 ******************************************************************************/ 00058 00066 typedef void (*GPIOINT_IrqCallbackPtr_t)(uint8_t pin); 00067 00068 /******************************************************************************* 00069 ****************************** PROTOTYPES ********************************* 00070 ******************************************************************************/ 00071 void GPIOINT_Init(void); 00072 void GPIOINT_CallbackRegister(uint8_t pin, GPIOINT_IrqCallbackPtr_t callbackPtr); 00073 static __INLINE void GPIOINT_CallbackUnRegister(uint8_t pin); 00074 00075 /***************************************************************************/ 00086 static __INLINE void GPIOINT_CallbackUnRegister(uint8_t pin) 00087 { 00088 GPIOINT_CallbackRegister(pin,0); 00089 } 00090 00093 #ifdef __cplusplus 00094 } 00095 #endif 00096 00097 #endif /* __EMDRV_GPIOINTERRUPT_H */