phyWAVE-KW22 Board

Support for the phyWAVE evaluation board. More...

Detailed Description

Support for the phyWAVE evaluation board.

Files

file  boards/pba-d-01-kw2x/include/board.h
 Board specific definitions for the phyWAVE evaluation board.
 
file  boards/pba-d-01-kw2x/include/periph_conf.h
 

Functions

void board_init (void)
 Initialize board specific hardware, including clock, LEDs and std-IO.
 

LED pin definitions and handlers

#define LED0_PIN   GPIO_PIN(PORT_D, 6)
 
#define LED1_PIN   GPIO_PIN(PORT_D, 4)
 
#define LED2_PIN   GPIO_PIN(PORT_A, 4)
 
#define LED0_MASK   (1 << 6)
 
#define LED1_MASK   (1 << 4)
 
#define LED2_MASK   (1 << 4)
 
#define LED0_ON   (GPIOD->PCOR = LED0_MASK)
 
#define LED0_OFF   (GPIOD->PSOR = LED0_MASK)
 
#define LED0_TOGGLE   (GPIOD->PTOR = LED0_MASK)
 
#define LED1_ON   (GPIOD->PCOR = LED1_MASK)
 
#define LED1_OFF   (GPIOD->PSOR = LED1_MASK)
 
#define LED1_TOGGLE   (GPIOD->PTOR = LED1_MASK)
 
#define LED2_ON   (GPIOA->PCOR = LED2_MASK)
 
#define LED2_OFF   (GPIOA->PSOR = LED2_MASK)
 
#define LED2_TOGGLE   (GPIOA->PTOR = LED2_MASK)
 

Macro for button S1/S2.

#define BTN0_PORT   PORTD
 
#define BTN0_PIN   GPIO_PIN(PORT_D, 1)
 
#define BTN0_MODE   GPIO_IN_PU
 

Macro for capacitive sensor button.

#define BTN1_PORT   PORTC
 
#define BTN1_PIN   GPIO_PIN(PORT_C, 6)
 
#define BTN1_MODE   GPIO_IN
 

KW2XRF configuration

{spi bus, cs pin, int pin, spi speed,}

#define KW2XRF_PARAM_SPI   SPI_DEV(1)
 
#define KW2XRF_PARAM_SPI_CLK   (SPI_CLK_10MHZ)
 
#define KW2XRF_PARAM_CS   GPIO_PIN(KW2XDRF_PORT, KW2XDRF_PCS0_PIN)
 
#define KW2XRF_PARAM_INT   GPIO_PIN(KW2XDRF_PORT, KW2XDRF_IRQ_PIN)
 
#define KW2XRF_SHARED_SPI   (0)