eint.c File Reference
#include <stdlib.h>
#include "eint.h"
#include "FreeRTOS.h"
#include "lpc_isr.h"
Include dependency graph for eint.c:

Data Structures

struct  eint3_entry
 Linked list structure of EINTs (External interrupts) More...
 

Typedefs

typedef struct eint3_entry eint3_entry_t
 Linked list structure of EINTs (External interrupts) More...
 

Functions

void EINT3_IRQHandler (void)
 Actual ISR Handler (mapped to startup file's interrupt vector function name) More...
 
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)
 

Typedef Documentation

typedef struct eint3_entry eint3_entry_t

Linked list structure of EINTs (External interrupts)

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.
void EINT3_IRQHandler ( void  )

Actual ISR Handler (mapped to startup file's interrupt vector function name)