1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

frdm-k22f: Define BTNx macros for user pushbuttons

This commit is contained in:
Joakim Nohlgård 2018-11-17 21:52:47 +01:00
parent 836fe3dbba
commit e1a4f7d7b9

View File

@ -52,6 +52,20 @@ extern "C"
#define LED2_TOGGLE (GPIOD->PTOR = LED2_MASK)
/** @} */
/**
* @name Button pin definitions
* @{
*/
/* SW2, SW3 will short these pins to ground when pushed. Both pins have external
* pull-up resistors to VDD */
/* BTN0 is mapped to SW2 */
#define BTN0_PIN GPIO_PIN(PORT_C, 1)
#define BTN0_MODE GPIO_IN
/* BTN1 is mapped to SW3 */
#define BTN1_PIN GPIO_PIN(PORT_B, 17)
#define BTN1_MODE GPIO_IN
/** @} */
/**
* @name FXOS8700CQ 3-axis accelerometer and magnetometer bus configuration
* @{