Massive cleanups to the incomplete BluetoothHost demo, to make the HCL layer code much easier to read, block less and work correctly.
This commit is contained in:
parent
c9148f9b47
commit
a2e6d54336
6 changed files with 167 additions and 257 deletions
|
@ -39,11 +39,13 @@ Bluetooth_Device_t Bluetooth_DeviceConfiguration ATTR_WEAK =
|
|||
Name: "LUFA BT Device"
|
||||
};
|
||||
|
||||
void Bluetooth_State_Init(void)
|
||||
{
|
||||
Bluetooth_HCIProcessingState = Bluetooth_Init;
|
||||
}
|
||||
|
||||
void Bluetooth_Stack_Task(void)
|
||||
{
|
||||
if (USB_HostState != HOST_STATE_Configured)
|
||||
Bluetooth_HCIProcessingState = Bluetooth_Init;
|
||||
|
||||
Bluetooth_ProcessHCICommands();
|
||||
Bluetooth_ProcessACLPackets();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue