Advertisement
teplofizik

exti.h (exti)

May 30th, 2013
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.41 KB | None | 0 0
  1. //
  2. // exti.h
  3. //
  4.  
  5. #include <stdint.h>
  6. #include <stdbool.h>
  7.  
  8. #include "gpio.h"
  9.  
  10. #ifndef _EXTI_H
  11. #define _EXTI_H
  12.  
  13.     typedef enum
  14.     {
  15.         EDGE_RISING,
  16.         EDGE_FALLING,
  17.         EDGE_BOTH
  18.     } TSignalEdge;
  19.  
  20.     void exti_Init(void);
  21.    
  22.     void exti_Main(void);
  23.    
  24.     // void Handler(void);
  25.     bool exti_Listen(const TPin * Pin, TSignalEdge Edge, void * Handler);
  26.    
  27. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement