1. 首页
  2. 编程语言
  3. C
  4. 串口和蓝牙通信程序

串口和蓝牙通信程序

上传者: 2018-12-19 06:07:08上传 7Z文件 7.47KB 热度 50次
void F2M_SetMspUartBR(unsigned int BaudrateConst) { portENTER_CRITICAL(); { #ifdef __F2M_UART1 UBR01 = (unsigned char)(BaudrateConst&0x00ff); UBR11 = (unsigned char)((BaudrateConst&0xff00)>>8); #else UBR00 = (char)(BaudrateConst&0x00ff); UBR10 = (char)((BaudrateConst&0xff00)>>8); #endif } portEXIT_CRITICAL(); }
下载地址
用户评论