Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

btstack 研究 #531

Open
supperthomas opened this issue Aug 21, 2024 · 0 comments
Open

btstack 研究 #531

supperthomas opened this issue Aug 21, 2024 · 0 comments

Comments

@supperthomas
Copy link
Owner

  1. 先把btstack环境跑起来,在stm32上, 确保环境能跑起来, ART-PI

-> ART-PI 目前硬件可以通,

-> btstack 用Ozone

  1. 我要熟悉btstack如何使用的。

void hal_uart_dma_send_block(const uint8_t *data, uint16_t size){

HAL_UART_Transmit_DMA( &huart3, (uint8_t *) data, size);

}

/**

* @brief Send block. When done, callback set by hal_uart_set_block_sent must be called

* @param buffer

* @param lengh

*/

void hal_uart_dma_send_block(const uint8_t *buffer, uint16_t length);

只要实现这个函数就可以UART 发送

参考
port\stm32-f4discovery-cc256x\

先在ART-PI上实现裸机程序

=》 先做一个cubeMX 里面有freertos和hal,参考bsp

=》 可以提交一个platform

  1. 如何在STM32上跑btstack

=》添加freertos,熟悉一下

=》 可以提交一个PR freertos art-pi

  1. 如何在STM32 上跑freertos btstack

    =》后面考虑添加rtthread,参考freertos。

代码完成之后,

添加

蓝牙btstack 入门指南

开源蓝牙协议栈btstack介绍及架构( 一 )

开源蓝牙协议栈btstack- 如何在STM32上跑btstack (二)

开源蓝牙协议栈btstack- 如何在PC蓝牙上跑btstack (三)

开源蓝牙协议栈btstack - STM32移植指南 (四)

开源蓝牙协议栈btstack- (五)

  1. 然后再考虑移植到RTTHREAD上
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant