eint.h
Go to the documentation of this file.
1 /*
2  * SocialLedge.com - Copyright (C) 2013
3  *
4  * This file is part of free software framework for embedded processors.
5  * You can use it and/or distribute it as long as this copyright header
6  * remains unmodified. The code is free for personal use and requires
7  * permission to use in a commercial product.
8  *
9  * THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED
10  * OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
11  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE.
12  * I SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR
13  * CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
14  *
15  * You can reach the author of this software at :
16  * p r e e t . w i k i @ g m a i l . c o m
17  */
18 
23 #ifndef EINT_H__
24 #define EINT_H__
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 #include <stdint.h>
29 #include "lpc_sys.h"
30 
31 
32 
34 typedef enum {
37 } eint_intr_t;
38 
48 void eint3_enable_port0(uint8_t pin_num, eint_intr_t type, void_func_t func);
49 
51 void eint3_enable_port2(uint8_t pin_num, eint_intr_t type, void_func_t func);
52 
53 
54 
55 #ifdef __cplusplus
56 }
57 #endif
58 #endif /* EINT_H__ */
void eint3_enable_port2(uint8_t pin_num, eint_intr_t type, void_func_t func)
Definition: eint.c:144
Interrupt on falling edge.
Definition: eint.h:36
void eint3_enable_port0(uint8_t pin_num, eint_intr_t type, void_func_t func)
Definition: eint.c:137
eint_intr_t
The type of the interrupt for the port pin.
Definition: eint.h:34
Interrupt on rising edge.
Definition: eint.h:35
Provides the following system services :
void(* void_func_t)(void)
Definition: lpc_sys.h:75