2. SDK分析

1. 概述

恒玄bes2700 sdk属于恒玄面向耳机市场的sdk,主要参考《BES_TWS_Software_Development_User_Manual_v1.2.pdf》

SDK由恒玄提供,版本《best1603_ibrt_anc_20240124_207ba3fb90.tar》

2. 文件树结构

- “apps” mainly stores upper-layer application-related software.

- “config” indicates the basic differentiated configuration.

- “Documentations” contains SDK related basic documents.

- “include” mainly contains RTOS header files.

- “lib” indicates BES owned libraries.

- “mbed” indicates mbed configuration files.

- “out” stores the compiled output file, select the “.bin” file when programming.

- “platform” mainly contains Driver codes and CMSIS codes.

- “rtos” indicates RTOS source files.

- “scripts” contains building framework scripts.

- “services” indicates service codes.

- “tests” contains test programs.

- “thirdparty” indicates third-party libraries.

- “utils” contains common utility codes.

- “Makefile” indicates the entry of the Makefile

3. 软件框架

核心

内核

性能

Main MCU

STAR-MC1

32-bit 内核 Armv8-M, Mainline 4.02 CoreMark/MHz

Co-processor

Hifi4 DSP

Co-processor

M55

Cortex-M55内核,基于Armv8.1-M架构

Sensor hub

STAR-MC1

Bluetooth controller

STAR-MC1

4. 数据流

Task name

Description

app_audio_thread

Manages different types of audio streams.

app_thread

Mainly used for the processing messages from the application modules.

af_thread

Processes the audio flinger dma irq events, covering internal codec, i2s, tdm, spdif, bt pcm functionalities. This is audio thread where the audio algorithms are running.

BesbtThread

Used for running all of the classic BT and BLE host layers.

main_thread

The main thread of the SDK.

a2dp_decoder_cc_processor_thread

Communicates with M55 for A2DP music decoding

app_custom_ux_thread

Distributes the TWS UI owned bluetooth events to the custom project for implementing the custom UI.

app_dsp_m55_bridge_rx_thread

Processes the core bridge message between main MCU and m55

app_prompt_handler_thread

Processes the pending prompt playing requests in the queue one by one.

app_core_bridge_rx_thread

Processes the core bridge message between main MCU and sensor hub.

4.1 电话数据流

4.2 音频数据流

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值