English
Language : 

EZR32WG-490MHZ Datasheet, PDF (16/29 Pages) Silicon Laboratories – Advanced Energy Monitoring
EZR32WG 490MHz Wireless Starter Kit
Board Support Package
8. Board Support Package
The Board Support Package (BSP) is a set of C source and header files that enables easy access to, and control over some board
specific features. Using the BSP is not required, and the EZR32 is fully usable without the BSP.
The BSP uses EZR32 peripheral USART2, Location 1 (TX pin PB3, RX pin PB4) on baudrate 115200-8-N-1 to communicate with the
board controller.
Note:
The BSP functionality is only available when the Starter Kit is USB-powered. Using these function calls with USB disconnected will give
unpredictable results.
8.1 Application Programming Interface
To use the BSP, include the Starter Kit header file, like this:
#include "bsp.h"
All functions in the BSP are prefixed with BSP_. Some functions to control the user LEDs might look like:
int BSP_LedClear (int ledNo)
Turn off a single LED.
int BSP_LedSet (int ledNo)
Turn on a single LED.
8.2 Example Applications
Under the kits/EZR32WG_WSTK6223/examples folder in your base Simplicity installation directory, you will find example programs us-
ing the BSP, with corresponding project/Makefiles for supported IDEs.
The examples folder also contains examples showing how to use the different peripherals on the WSTK6223.
8.3 How to include in your own applications
The easiest way to include the BSP in your application is to create it using the Simplicity IDE.
Alternatively to base your work on the example application that uses the BSP. The following items are recommended for correct config-
uration:
1. Make sure you define the correct part number (i.e. EZR32WG330F256R63G) as a preprocessor defined symbol
2. Make sure you define the correct part number (i.e. EZR32WG330F256R63G) for your project file
3. Add and include the EFM32_CMSIS-files (startup_efm32.s, system_efm32.c, core_cm3.c) to your project
4. Add and include all BSP package .c-files, with the bsp-prefix to your project
5. Configure include paths to point at the CMSIS/CM3/CoreSupport and CMSIS/CM3/DeviceSupport/EnergyMicro/EFM32 directories
6. Configure include paths to point to the kits/EZR32WG_WSTK6223/bsp directory
Make sure you call "BSP_Init()" early at startup, and you should be all set.
silabs.com | Smart. Connected. Energy-friendly.
Rev. 1.2 | 13