Rename Bluetooth stack function parameters to clearly indicate what sort of Bluetooth channel (ACL, RFCOMM) is required for each parameter, to make the code easier to read.
Add a new RFCOMM_ChannelSignalsReceived() Bluetooth stack callback from the RFCOMM layer for when the remote device sends new terminal control signals. Fix RFCOMM_SendData() not aborting correctly when the requested RFCOMM channel is not found.
This commit is contained in:
parent
ba711d6759
commit
6276d5f82a
12 changed files with 153 additions and 145 deletions
|
@ -58,8 +58,7 @@ int main(void)
|
|||
|
||||
for (;;)
|
||||
{
|
||||
if ((RFCOMMChannel != NULL) && (RFCOMMChannel->State == BT_Channel_Open))
|
||||
RFCOMM_ServiceChannels(RFCOMMChannel);
|
||||
RFCOMM_ServiceChannels(SerialChannel_ACL);
|
||||
|
||||
Bluetooth_Host_Task();
|
||||
Bluetooth_Stack_USBTask();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue