Skip to content
Snippets Groups Projects
Commit 2b089299 authored by Joakim Nohlgård's avatar Joakim Nohlgård
Browse files

frdm-k64f: Define BTNx macros for user pushbuttons

parent a867aeab
No related branches found
No related tags found
No related merge requests found
......@@ -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
* @{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment