You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 18, 2024. It is now read-only.
Nick Walker edited this page Aug 8, 2014
·
4 revisions
Planning
We're going to be making a simple BLE profile for a not-so-theoretical alarm clock. First, let's do some thinking about what services our profile will provide. We'll definitely need to make the time available.
Organization of a CC2541 Project
TI's example projects are densely documented, to the point that it can actually be hard to tell what's going on at a glance. This is especially true within IAR, which is a mediocre IDE. Let's start from the SimpleBLEPeripheral example project. The information presented here is condensed from the documentation that is included with the BLE stack in the documents directory.
Main.c is the entry point for the application and initializes the hardware and operating system abstraction layers.
OSAL.c starts all of the processes needed to manage the BLE stack. Your application process will be initialized at the very bottom.
SimplePeripheral.c/.h