资源简介
蓝牙开发部分源码,简单上手,bluelab的例子啊
代码片段和文件信息
/*
This application demonstrate how to use uart interface
You can use serial port debug tool to send data to bluecore
BlueCore will return these data to serial port debug tool.
The baudrate is 9600bps
*/
#include
#include
#include
#include
#include
#include
TaskData MyTask;
/* send data out of uart */
static void UartSendData(const void* suint16 length)
{
Sink uart = StreamUartSink(); /* get the uart sink header */
char * data = (char*)s;
if(uart)
{
if (SinkClaim(uartlength) != 0xFFFF) /* claim number of extra bytes in uart sink */
{
memcpy(SinkMap(uart)(char *)datalength); /* copy the data to uart sink */
SinkFlush(uartlength); /* flush the data out of the uart sink */
}
}
}
/* message handler function */
static void my_message_handler(Task task MessageId
相关资源
- bp神经网络源代码,可直接运行
- 仿知乎界面小程序源代码
- 贪吃蛇源代码.fla
- dotnet 写字板 实验 源代码 不好请要不
- 图像二维小波变换的实现源代码
- 八三编码器设计 VHDL代码 简单,包附
- linux应用层的华容道游戏源代码
- 网上拍卖系统完整源代码
- CSMA/CD等动画演示加源代码
- silicon lab公司的收音IC SI47XX全套开发工
- 合同管理系统的源代码(附数据库)
- 用VC 编写的仿QQ聊天室程序源代码
- STM32F103 串口程序(完整版)
- VPC3_DPV1源代码,Profibus
- PB做的托盘程序(最小化后在左下角显
- 透明加密源码及说明
- 排队机叫号 源代码
- 五子棋C 源代码
- CAD LISP24个源代码
- 二叉树基本操作源代码
- 推箱子及人工智能寻路C 源代码
- opengl轮廓字体源代码
- 冈萨雷斯 数字图像处理 源代码(m文
- 直流伺服电机电路原理图(内附单片
- 哈哈冒险岛登入器源代码
- midi电子琴简单设计(附源代码).ra
- PESQ C源代码
- 画图程序MFC/VC/VC CRectTracker 串行化
- 莱卡 全站仪数据格式转换程序,有源
- HEX到Bin文件源代码
评论
共有 条评论