![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
BLE
zhuzhw
这个作者很懒,什么都没留下…
展开
-
Eclipse 在工程中包含的头文件的Index问题
如题,有的头文件 在工程中包含。里边的宏不会对代码的显示起作用,不能用跳转,很麻烦。 可以设置包含进来。如下。 If you see that the eclipse has the files that should be included in your build grayed out, then follow the next steps: 1) Go to Window ->原创 2017-01-02 10:09:28 · 2683 阅读 · 0 评论 -
Dialog 1.08 SDK Pxp reporter 代码走读
从Main.c开始,Main函数。 初始化时钟,创建system_init任务,然后启动操作系统调度,并不再返回。 在system_init任务主要做系统初始化,然后创建pxp_reporter_task任务,然后Delete自己。 pxp_reporter_task中,依次做了以下几件事: 初始化;创建要广播的设备名称;注册标准的服务, IAS(Immediate Alert ser原创 2016-12-26 11:51:07 · 1146 阅读 · 1 评论 -
Dialog 1.08 SDK Pxp reporter 代码走读 - 2
再回到APP的任务框架几件重要事情的实现方法。 其一,add service. void ble_service_add(ble_service_t *svc) { int i; for (i = 0; i if (!services[i]) { services[i原创 2016-12-29 17:35:46 · 777 阅读 · 0 评论 -
Dialog 1.08 SDK 实战 —— 搭建环境
首先,从Dialog官网下载并安装相关软件。主要参考官方文档DA1468x Software Developer’s Guide UM-B-056 1. JLink_Windows_V612c.exe 2. Ozone_Setup_Windows_V222i_x64.exe 3. SmartSnippets_Studio_v1.2.3.588_windows.msi SmartSnippe原创 2016-12-29 17:50:03 · 2039 阅读 · 0 评论 -
Dialog 1.08 SDK 实战 —— 添加新的Sevice
查看了一下官方的Service,发现一个Serial Port Service。非常适合做自定义的数据传输。 首先,包含头文件,定义一系列回调函数, 增加服务。 ddc_cb.rx_data = ddc_rx_data_cb; ddc_cb.set_flow_control = ddc_ctrl_key_cb; ddc_cb.tx_done原创 2016-12-29 18:02:25 · 938 阅读 · 0 评论