frdm-k22f/include/board.h

Board specific definitions for the FRDM-K22F.

LED0_PIN
1
GPIO_PIN(PORT_A,  1)
LED1_PIN
1
GPIO_PIN(PORT_A,  2)
LED2_PIN
1
GPIO_PIN(PORT_D,  5)
LED0_MASK
1
(1 <<  1)
LED1_MASK
1
(1 <<  2)
LED2_MASK
1
(1 <<  5)
LED0_ON
1
(GPIOA->PCOR = LED0_MASK)
LED0_OFF
1
(GPIOA->PSOR = LED0_MASK)
LED0_TOGGLE
1
(GPIOA->PTOR = LED0_MASK)
LED1_ON
1
(GPIOA->PCOR = LED1_MASK)
LED1_OFF
1
(GPIOA->PSOR = LED1_MASK)
LED1_TOGGLE
1
(GPIOA->PTOR = LED1_MASK)
LED2_ON
1
(GPIOD->PCOR = LED2_MASK)
LED2_OFF
1
(GPIOD->PSOR = LED2_MASK)
LED2_TOGGLE
1
(GPIOD->PTOR = LED2_MASK)
BTN0_PIN
1
GPIO_PIN(PORT_C,  1)
BTN0_MODE
1
GPIO_IN
BTN1_PIN
1
GPIO_PIN(PORT_B, 17)
BTN1_MODE
1
GPIO_IN
FXOS8700_PARAM_I2C
1
I2C_DEV(0)
FXOS8700_PARAM_ADDR
1
0x1C
void board_init(void)

Initialize board specific hardware, including clock, LEDs and std-IO.