Telink TLSR8232 BLE SDK Developer Handbook
AN-19112700-E1 16 Ver.1.0.0
1.1.2 app_config.h
The user configuration file “app_config.h” serves to configure parameters of the whole
system, including parameters related to BLE, GPIO, PM low-power management, and
etc.
Parameter details of each module will be illustrated in following sections.
1.1.3 Application File
“app.c”: User file for system initialization and adding user task UI.
“app_att.c” of BLE Slave project: configuration files for services and profiles. Based on
Telink Attribute structure, as well as Attributes such as GATT, standard HID, and
proprietary OTA, users can add their own services and profiles as needed.
1.1.4 BLE Stack Entry
There are two entry functions in BLE stack code of Telink BLE SDK.
1) BLE related interrupt processing entry in “irq_handler” function of “main.c” file
“irq_blt_sdk_handler”.
_attribute_ram_code_ void irq_handler(void)
{
……
irq_blt_sdk_handler ();
……
}
2) BLE logic and data processing function entry in application file mainloop
“blt_sdk_main_loop”.
void main_loop (void)
{
tick_loop ++;
///////////////////// BLE entry ////////////////////////////
blt_sdk_main_loop();
////////////////////// UI entry ////////////////////////////
……
}