Programming with
BlueNRG-1 system-on-chip
UM2264
24/55
DocID030868 Rev 1
5
Programming with BlueNRG-1 system-on-chip
The SPBTLE-1S module, based on BlueNRG-1 Bluetooth low energy (BLE) stack is
provided as a binary library. A set of APIs to control BLE functionality. Some callbacks are
also provided for user applications to handle BLE stack events. The user is simply
requested to link this binary library to his or her application and use the relevant APIs to
access BLE functions and complete the stack event callbacks to manage responses
according to application requirements.
A set of software driver APIs is also included for accessing the BlueNRG-1 SoC peripherals
and resources (ADC, GPIO, I²C, MFTX, Micro, RTC, SPI, SysTick, UART and WDG).
The development kit software includes sample code demonstrating how to configure
BlueNRG-1 and use the device peripherals and BLE APIs and event callbacks.
Documentation on the BLE APIs, callbacks, and peripheral drivers are provided in separate
documents.
5.1
Software directory structure
The BlueNRG-1 DK software package files are organized in the following directories:
Application
: containing BlueNRG-1 Navigator and Flasher PC applications.
Doc
: with doxygen BLE APIs and events, BlueNRG-1 peripheral drivers, BLE demo
applications, BlueNRG-1 Peripheral examples, BlueNRG-1 SDK and HAL driver
documentation, DK release notes and license file.
Firmware
: with prebuilt binary BLE and peripheral driver sample applications.
Library
Bluetooth LE
: Bluetooth low energy stack binary library and all the definitions of
stack APIs, stack event callbacks and constants. Over-the-air Bluetooth low
energy firmware upgrade support.
BlueNRG1_Periph_Driver
: BlueNRG-1 drivers for device peripherals (ADC,
clock, DMA, Flash, GPIO, I²C, timers, RTC, SPI, UARR and watchdog).
CMSIS
: BlueNRG-1 CMSIS files.
SDK_Eval_BlueNRG1
: SDK drivers providing an API interface to the BlueNRG-1
platform hardware resources (LEDs, buttons, sensors, I/O channel).
HAL
: Hardware abstraction level APIs for abstracting certain BlueNRG-1
hardware features (sleep modes, clock based on SysTick, etc.).
Project
BLE_Examples
: Bluetooth low energy demonstration application including
Headers, source files and EWARM, Keil and Atollic project files.
BlueNRG1_Periph_Examples
: with sample applications for the BlueNRG-1
peripherals and hardware resources, including Headers, source files and project
files.
Utility
: contains some utilities