Software Considerations
www.ti.com
70
SWRU271H–October 2010–Revised April 2019
Submit Documentation Feedback
Copyright © 2010–2019, Texas Instruments Incorporated
Creating a Custom Bluetooth Low Energy Application
The following is an example of this allocation in the gattServApp_SendNotiInd() function in
gattservapp_util.c:
7.7.2 Limit Application Processing During Bluetooth Low Energy Activity
Because of the time-dependent nature of the Bluetooth Low Energy protocol, the controller
(LL_ProcessEvent()) must process before each connection event or advertising event. If the controller
does not get process, advertising restarts or the connection drops. Because OSAL is not multithreaded,
each task must stop processing to let the controller process. The stack layers do not have this issue.
Ensure that the application processes less than the following:
(connection/advertising interval) – 2 ms
The 2 ms are added as buffer to account for controller processing time. If extensive processing is required
in the application task, split it up using OSAL events in Section 3.3.
7.7.3 Global Interrupts
During Bluetooth Low Energy activity, the controller must process radio and MAC timer interrupts quickly
to set up the Bluetooth Low Energy event postprocessing. Never globally disable interrupts during
Bluetooth Low Energy activity.