Silicon Labs SLWSTK6000B starter kit

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

Detailed Description

Support for the Silicon Labs SLWSTK6000B starter kit.

Files

file  slwstk6000b/include/board.h
 Board specific definitions for the SLWSTK6000B starter kit.
 
file  boards/slwstk6000b/include/periph_conf.h
 Configuration of CPU peripherals for the SLWSTK6000B starter kit.
 
file  slwrb4150a/include/board_module.h
 Specific definitions for SLWRB4150A module.
 
file  slwrb4162a/include/board_module.h
 Specific definitions for SLWRB4162A module.
 

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   MODULE_PIN_F5
 

Push button pin definitions

#define PB0_PIN   MODULE_PIN_F12
 
#define PB1_PIN   MODULE_PIN_F13
 

LED pin definitions

#define LED0_PIN   MODULE_PIN_F10
 
#define LED1_PIN   MODULE_PIN_F11
 

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)
 

Display configuration

Connection to the on-board Sharp Memory LCD (LS013B7DH03).

#define DISP_SPI   SPI_DEV(0)
 
#define DISP_COM_PIN   MODULE_PIN_F18
 
#define DISP_CS_PIN   MODULE_PIN_F17
 
#define DISP_EN_PIN   MODULE_PIN_F14
 

Temperature sensor configuration

Connection to the on-board temperature/humidity sensor (Si7021).

#define SI7021_I2C   I2C_DEV(0)
 
#define SI7021_EN_PIN   MODULE_PIN_P37
 
#define SI70XX_PARAM_I2C_DEV   SI7021_I2C