Silicon Labs STK3700 starter kit

Support for the Silicon Labs STK3700 starter kit. More...

Detailed Description

Support for the Silicon Labs STK3700 starter kit.

Files

file  board.h
 Board specific definitions for the STK3700 starter kit.
 
file  gpio_params.h
 Board specific configuration of direct mapped GPIOs.
 
file  periph_conf.h
 Configuration of CPU peripherals for the STK3700 starter kit.
 

Functions

void board_init (void)
 Initialize the board (GPIO, sensors, clocks).
 

Xtimer configuration

The timer runs at 250 KHz to increase accuracy.

#define XTIMER_HZ   (250000UL)
 
#define XTIMER_WIDTH   (16)
 

Board controller configuration

Define the GPIO pin to enable the BC, to allow serial communication via the USB port.

#define BC_PIN   GPIO_PIN(PF, 7)
 

Push button pin definitions

#define PB0_PIN   GPIO_PIN(PB, 9)
 
#define PB1_PIN   GPIO_PIN(PB, 10)
 

LED pin definitions

#define LED0_PIN   GPIO_PIN(PE, 2)
 
#define LED1_PIN   GPIO_PIN(PE, 3)
 

Macros for controlling the on-board LEDs

#define LED0_ON   gpio_set(LED0_PIN)
 
#define LED0_OFF   gpio_clear(LED0_PIN)
 
#define LED0_TOGGLE   gpio_toggle(LED0_PIN)
 
#define LED1_ON   gpio_set(LED1_PIN)
 
#define LED1_OFF   gpio_clear(LED1_PIN)
 
#define LED1_TOGGLE   gpio_toggle(LED1_PIN)