document updated 7 years ago, on Jan 18, 2017
===================== SW2 =========================
examples/frdmkl82z/driver_examples/gpio/main.c
^^ asynchronous
examples/frdmkl82z/gpio_pins.h
kGpioSW2 = GPIO_MAKE_PIN(GPIOA_IDX, 4U),
examples/frdmkl82z/board.h
// ===== SW2 =====
#define BOARD_SW_GPIO kGpioSW2
#define BOARD_SW_IRQ_NUM PORTA_IRQn
#define BOARD_SW_IRQ_HANDLER PORTA_IRQHandler
#define BOARD_SW_NAME "SW2"
GPIO_DRV_ReadPinInput()
===================== SW3 =========================
examples/frdmkl82z/demo_apps/power_manager_hal_demo/main.c
examples/frdmkl82z/gpio_pins.h
kGpioSW3 = GPIO_MAKE_PIN(GPIOD_IDX, 0U),
examples/frdmkl82z/board.h
#define PRINT_LLWU_SW_NUM PRINTF("SW3")
/* Defines the llwu pin number for board switch which is used in power_manager_demo. */
#define BOARD_SW_HAS_LLWU_PIN 1
#define BOARD_SW_LLWU_EXT_PIN kLlwuWakeupPin12
/* Switch port base address and IRQ handler name. Used by power_manager_demo */
#define BOARD_SW_LLWU_PIN 0
#define BOARD_SW_LLWU_BASE PORTD
#define BOARD_SW_LLWU_IRQ_HANDLER PORTD_IRQHandler
#define BOARD_SW_LLWU_IRQ_NUM PORTD_IRQn
According to the schematics at https://community.nxp.com/thread/431443 , the pin is indeed portd + 0.
===================== touch-sensitive pads =========================
examples/frdmkl82z/driver_examples/tsi/main.c
file:///home/dee/doshcard.local/kinetis_KL82Z_SDK/doc/Kinetis%20SDK%20v.1.3.0_KL82Z_1.0.0%20API%20Reference%20Manual/group__tsi__driver.html
From http://www.nxp.com/assets/documents/data/en/user-guides/FRDMKL82ZUG.pdf the pins used are:
touchpad E1 PTB18
touchpad E2 PTB19
mechanical push buttons: NMI and LLWU buttons (SW2, SW3)