eint.h File Reference
#include <stdint.h>
#include "lpc_sys.h"
Include dependency graph for eint.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  eint_intr_t { eint_rising_edge, eint_falling_edge }
 The type of the interrupt for the port pin. More...
 

Functions

void eint3_enable_port0 (uint8_t pin_num, eint_intr_t type, void_func_t func)
 
void eint3_enable_port2 (uint8_t pin_num, eint_intr_t type, void_func_t func)
 

Enumeration Type Documentation

The type of the interrupt for the port pin.

Enumerator
eint_rising_edge 

Interrupt on rising edge.

eint_falling_edge 

Interrupt on falling edge.

Function Documentation

void eint3_enable_port0 ( uint8_t  pin_num,
eint_intr_t  type,
void_func_t  func 
)

Enables the callback when the interrupt occurs. The entry added last is checked first if multiple interrupts occur at the same time. Each call will allocate 16 bytes for the interrupt service entry.

Note
EINT3 shares interrupt with Port0 and Port2
Parameters
[in]pin_numThe pin number from 0-31.
[in]typeThe type of interrupt.
[in]funcThe callback function.
void eint3_enable_port2 ( uint8_t  pin_num,
eint_intr_t  type,
void_func_t  func 
)

Enables the callback when the interrupt occurs. The entry added last is checked first if multiple interrupts occur at the same time. Each call will allocate 16 bytes for the interrupt service entry.

Note
EINT3 shares interrupt with Port0 and Port2
Parameters
[in]pin_numThe pin number from 0-31.
[in]typeThe type of interrupt.
[in]funcThe callback function.