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

frdm-k64f: Define BTNx macros for user pushbuttons

This commit is contained in:
Joakim Nohlgård 2018-11-17 21:15:03 +01:00
parent a867aeaba2
commit 2b0892996e

View File

@ -53,6 +53,20 @@ extern "C"
#define LED2_TOGGLE (GPIOB->PTOR = LED2_MASK)
/** @} */
/**
* @name Button pin definitions
* @{
*/
/* SW2, SW3 will short these pins to ground when pushed. PTA4 has an external
* pull-up resistor to VDD, but there is no external pull resistor on PTC6 */
/* BTN0 is mapped to SW2 */
#define BTN0_PIN GPIO_PIN(PORT_C, 6)
#define BTN0_MODE GPIO_IN_PU
/* BTN1 is mapped to SW3 */
#define BTN1_PIN GPIO_PIN(PORT_A, 4)
#define BTN1_MODE GPIO_IN_PU
/** @} */
/**
* @name FXOS8700CQ 3-axis accelerometer and magnetometer bus configuration
* @{