gpiointerrupt.h

Go to the documentation of this file.
00001 /***************************************************************************/
00016 #ifndef __EMDRV_GPIOINTERRUPT_H
00017 #define __EMDRV_GPIOINTERRUPT_H
00018 
00019 #include "stdint.h"
00020 
00021 #ifdef __cplusplus
00022 extern "C" {
00023 #endif
00024 
00025 /***************************************************************************/
00030 /***************************************************************************/
00038 /*******************************************************************************
00039  *******************************   TYPEDEFS   **********************************
00040  ******************************************************************************/
00041 
00049 typedef void (*GPIOINT_IrqCallbackPtr_t)(uint8_t pin);
00050 
00051 /*******************************************************************************
00052  ******************************   PROTOTYPES   *********************************
00053  ******************************************************************************/
00054 void GPIOINT_Init(void);
00055 void GPIOINT_CallbackRegister(uint8_t pin, GPIOINT_IrqCallbackPtr_t callbackPtr);
00056 static __INLINE void GPIOINT_CallbackUnRegister(uint8_t pin);
00057 
00058 /***************************************************************************/
00069 static __INLINE void GPIOINT_CallbackUnRegister(uint8_t pin)
00070 {
00071   GPIOINT_CallbackRegister(pin,0);
00072 }
00073 
00076 #ifdef __cplusplus
00077 }
00078 #endif
00079 
00080 #endif /* __EMDRV_GPIOINTERRUPT_H */