91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

資源簡(jiǎn)介

硬件平臺(tái)基于TI公司的MSP430G2553和低功耗藍(lán)牙模塊 利用單片機(jī)上面的串口收發(fā)數(shù)據(jù)控制藍(lán)牙模塊

資源截圖

代碼片段和文件信息

#include?
#include?“BT05.h“

/***********************************************
函數(shù)名稱:Init_BLE
功????能:對(duì)BLE進(jìn)行初始化設(shè)置波特率及收發(fā)串口,使能接收中斷
參????數(shù):無
返回值??:無
***********************************************/
void?Init_BLE()
{
??? P1SEL?=?BIT1+BIT2;????//P1.1為RXDP1.2為TXD
P1SEL2?=?BIT1+BIT2;??//P1.1為RXDP1.2為TXD
UCA0CTL1?|=?UCSSEL_2;?//選擇時(shí)鐘BRCLK
UCA0BR0?=?106;???//1Mhz?9600
UCA0BR1?=?0;?????//1Mhz?9600
UCA0MCTL?=?UCBRS2?+?UCBRS0;??//波特率=BRCLK/(UBR+(M7+...0)/8)
UCA0CTL1?&=~?UCSWRST;???//初始化順序:SWRST=1設(shè)置串口?然后設(shè)置SWRST=0?最后設(shè)置相應(yīng)中斷
IE2?|=?UCA0RXIE;????//使能接收中斷
}

/***********************************************
函數(shù)名稱:UartPutchar
功????能:將一個(gè)字符寫入串口發(fā)送緩沖區(qū)
參????數(shù):等待串口發(fā)送的數(shù)據(jù)
返回值??:無
***********************************************/
void?UartPutchar(unsigned?char?c)
{
while(!(IFG2&UCA0TXIFG));?//(待發(fā)送為空)
UCA0TXBUF?=?c;
IFG2?&=?~UCA0TXIFG;
}
/***********************************************
函數(shù)名稱:UartPutNum
功????能:通過串口發(fā)送一個(gè)數(shù)字
參????數(shù):等待串口發(fā)送的數(shù)字
返回值??:無
*************

?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----

?????文件????????512??2017-12-12?12:19??BLE_430\.ccsproject

?????文件??????23976??2017-12-12?12:19??BLE_430\.cproject

?????文件????????283??2017-12-12?12:21??BLE_430\.git\COMMIT_EDITMSG

?????文件????????300??2017-12-12?11:25??BLE_430\.git\config

?????文件?????????73??2017-12-12?11:25??BLE_430\.git\description

?????文件?????????23??2017-12-12?11:25??BLE_430\.git\HEAD

?????文件????????478??2017-12-12?11:25??BLE_430\.git\hooks\applypatch-msg.sample

?????文件????????896??2017-12-12?11:25??BLE_430\.git\hooks\commit-msg.sample

?????文件????????189??2017-12-12?11:25??BLE_430\.git\hooks\post-update.sample

?????文件????????424??2017-12-12?11:25??BLE_430\.git\hooks\pre-applypatch.sample

?????文件???????1642??2017-12-12?11:25??BLE_430\.git\hooks\pre-commit.sample

?????文件???????1348??2017-12-12?11:25??BLE_430\.git\hooks\pre-push.sample

?????文件???????4898??2017-12-12?11:25??BLE_430\.git\hooks\pre-rebase.sample

?????文件????????544??2017-12-12?11:25??BLE_430\.git\hooks\pre-receive.sample

?????文件???????1492??2017-12-12?11:25??BLE_430\.git\hooks\prepare-commit-msg.sample

?????文件???????3610??2017-12-12?11:25??BLE_430\.git\hooks\update.sample

?????文件???????1146??2017-12-12?12:21??BLE_430\.git\index

?????文件????????240??2017-12-12?11:25??BLE_430\.git\info\exclude

?????文件????????499??2017-12-12?12:21??BLE_430\.git\logs\HEAD

?????文件????????499??2017-12-12?12:21??BLE_430\.git\logs\refs\heads\master

?????文件????????172??2017-12-12?11:25??BLE_430\.git\logs\refs\remotes\origin\HEAD

?????文件????????274??2017-12-12?12:21??BLE_430\.git\logs\refs\remotes\origin\master

?????文件????????226??2017-12-12?11:27??BLE_430\.git\objects\02\0a01b4c593a7794f8576bc6f88a722b0368c44

?????文件?????????53??2017-12-12?11:25??BLE_430\.git\objects\04\0ce3635faae9e2dbb6ac2be24fbe9b00d44df6

?????文件????????115??2017-12-12?11:27??BLE_430\.git\objects\09\3dbb9542d5a20e697e906eb646f385984e8b0b

?????文件????????312??2017-12-12?11:27??BLE_430\.git\objects\09\dfb174fe06f73e4f2a6cadf86fea2b9bf11c10

?????文件???????3425??2017-12-12?12:21??BLE_430\.git\objects\0b\3225c824eb35192dfb11b1b1ee06ca41d857ee

?????文件????????196??2017-12-12?11:27??BLE_430\.git\objects\0c\8f4d149592f048499196f0fee264b3fa878f13

?????文件??????11514??2017-12-12?11:27??BLE_430\.git\objects\1b\f754020634eb2f0cd807d1d3759eff0d04dec7

?????文件????????106??2017-12-12?11:27??BLE_430\.git\objects\2a\dc7b1ddeb997df2523f579592934775ed8f17c

............此處省略125個(gè)文件信息

評(píng)論

共有 條評(píng)論