New Module Description and SDK Brief Introduction
1 SDK Important File Description
1.1 Board Configuration
File location: apps\earphone\board\br28\board_config.h
In board_config.h, we select CONFIG_BOARD_JL7016G_HYBRID. This activates the following three basic configuration files:
board_jl7016g_hybrid_cfg.hboard_jl7016g_hybrid_global_build_cfg.hboard_jl7016g_hybrid.cInboard_jl7016g_hybrid_cfg.h, we can further configure pins for peripherals such as UART, IIC, SD, etc.
1.2 SDK Startup File
File location: apps\earphone\app_main.c
In app_main.c, we can see the SDK startup process. This file can be divided into two parts: task_info task_info_table[] and app_main()
- First is
task_info task_info_table[], which is a task information table that defines the name, priority, core to run on, stack size, and heap size for each task. Each task corresponds to a specific functional module.
- Next is the
app_main()function, which is the SDK entry function. It creates and starts various tasks according to the configuration in the task information table.
2 Buddie New Module Overview
The Buddie new modules mainly include the following parts:
- Speaker detection
- Audio data compression (PCA, OPUS)
- Bluetooth data transmission and reception (BLE, SPP)