Landtiger LPC1768 C BigLib 1
A self made, custom C library for the LandTiger board.
 
Loading...
Searching...
No Matches
button_types.h
Go to the documentation of this file.
1#ifndef __BUTTONS_TYPES_H
2#define __BUTTONS_TYPES_H
3
4typedef enum
5{
8
26
27// INTERRUPTS
28
42
43// Interrupt handler function pointer
44typedef void (*BUTTON_Function)(void);
45
46#endif
BUTTON_Source
@ BTN_SRC_EINT1
EINT1: First button from the left.
@ BTN_SRC_EINT0
INT0: Third button from the left (next to RES)
@ BTN_SRC_EINT2
EINT2: Second button from the left.
@ BTN_SRC_COUNT
void(* BUTTON_Function)(void)
BUTTON_Config
Definition button_types.h:5
@ BTN_DEBOUNCE_WITH_RIT
Definition button_types.h:6
BUTTON_Error
@ BTN_ERR_INT_PRIO_INVALID
An invalid priority was specified (must be 0 <= prio <= 15). This is not necessarily an error,...
@ BTN_ERR_RIT_UNINIT
During initialization, DEBOUNCE_WITH_RIT was requested but the RIT was not enabled.
@ BTN_ERR_NO_HANDLER_TO_ENABLE
It was requested to enable a button interrupt, but no function was bound to it.
@ BTN_ERR_OK
No error.