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:
Dean Camera 2010-03-31 14:32:03 +00:00
parent c9148f9b47
commit a2e6d54336
6 changed files with 167 additions and 257 deletions

View file

@ -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();
}