Move out Bluetooth stack callback functions to a seperate BluetoothEvents.c/.h set of files for clarity in the Incomplete BluetoothHost demo. Add a new stack callback for opened ACL channels, make the demo save the RFCOMM channel when opened so that it does not have to search for it on each iteration of the main program loop.
This commit is contained in:
parent
dea897ef57
commit
70983caea5
9 changed files with 241 additions and 118 deletions
|
@ -552,6 +552,7 @@ static inline void Bluetooth_Signal_ConfigurationReq(const BT_Signal_Header_t* c
|
|||
break;
|
||||
case BT_Channel_Config_WaitReq:
|
||||
ChannelData->State = BT_Channel_Open;
|
||||
Bluetooth_ChannelOpened(ChannelData);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -594,6 +595,7 @@ static inline void Bluetooth_Signal_ConfigurationResp(const BT_Signal_Header_t*
|
|||
break;
|
||||
case BT_Channel_Config_WaitResp:
|
||||
ChannelData->State = BT_Channel_Open;
|
||||
Bluetooth_ChannelOpened(ChannelData);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue