eint.h File Reference
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
enum eint_intr_t |
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_num The pin number from 0-31. [in] type The type of interrupt. [in] func The 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_num The pin number from 0-31. [in] type The type of interrupt. [in] func The callback function.