|
Labor04
|
Read state of buttons. More...
#include "GPIO_LPC17xx.h"#include "PIN_LPC17xx.h"#include "LPC17xx.h"

Go to the source code of this file.
Macros | |
| #define | APPBOARD2_NUMBER_BUTTONS (8U) |
| #define | BUTTON_T0 (1U<<0) |
| #define | BUTTON_T1 (1U<<1) |
| #define | BUTTON_T2 (1U<<2) |
| #define | BUTTON_T3 (1U<<3) |
| #define | BUTTON_T4 (1U<<4) |
| #define | BUTTON_T5 (1U<<5) |
| #define | BUTTON_T6 (1U<<6) |
| #define | BUTTON_T7 (1U<<7) |
| #define | APPBOARD2_MASK_BUTTONS (0x000000FFU) |
| #define | LPC_GPIO_PORT(n) ((LPC_GPIO_TypeDef*)(LPC_GPIO0_BASE + (0x00000020*(n)))) |
Functions | |
| void | vAppboard2ButtonsInitialize (void) |
| Initialization of all buttons of Application Board 2. More... | |
| void | vAppboard2ButtonsUninitialize (void) |
| Uninitialization of all buttons of Application Board 2. More... | |
| uint32_t | u32AppBoard2ButtonsGetState (void) |
| Returns the pressed Buttons (bit coded see AppBoard2Buttons.h) More... | |
Read state of buttons.
This file defines important button definitions, which are used for the button functions of application board 2
| #define APPBOARD2_MASK_BUTTONS (0x000000FFU) |
| #define APPBOARD2_NUMBER_BUTTONS (8U) |
| #define BUTTON_T0 (1U<<0) |
| #define BUTTON_T1 (1U<<1) |
| #define BUTTON_T2 (1U<<2) |
| #define BUTTON_T3 (1U<<3) |
| #define BUTTON_T4 (1U<<4) |
| #define BUTTON_T5 (1U<<5) |
| #define BUTTON_T6 (1U<<6) |
| #define BUTTON_T7 (1U<<7) |
| #define LPC_GPIO_PORT | ( | n | ) | ((LPC_GPIO_TypeDef*)(LPC_GPIO0_BASE + (0x00000020*(n)))) |
| uint32_t u32AppBoard2ButtonsGetState | ( | void | ) |
Returns the pressed Buttons (bit coded see AppBoard2Buttons.h)
| no |
After a pressed button is recognized, the button gets debounced and returned


| void vAppboard2ButtonsInitialize | ( | void | ) |
Initialization of all buttons of Application Board 2.
| void |

| void vAppboard2ButtonsUninitialize | ( | void | ) |
Uninitialization of all buttons of Application Board 2.
| void |