projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Renamed all library events to properly seperate out Device and Host mode events....
[pub/USBasp.git]
/
Demos
/
Host
/
Incomplete
/
BluetoothHost
/
BluetoothHost.c
diff --git
a/Demos/Host/Incomplete/BluetoothHost/BluetoothHost.c
b/Demos/Host/Incomplete/BluetoothHost/BluetoothHost.c
index
a52ba7c
..
25c15a9
100644
(file)
--- a/
Demos/Host/Incomplete/BluetoothHost/BluetoothHost.c
+++ b/
Demos/Host/Incomplete/BluetoothHost/BluetoothHost.c
@@
-75,26
+75,26
@@
void SetupHardware(void)
USB_Init();
\r
}
\r
\r
USB_Init();
\r
}
\r
\r
-void EVENT_USB_DeviceAttached(void)
\r
+void EVENT_USB_
Host_
DeviceAttached(void)
\r
{
\r
puts_P(PSTR(ESC_FG_GREEN "Device Attached.\r\n" ESC_FG_WHITE));
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_ENUMERATING);
\r
}
\r
\r
{
\r
puts_P(PSTR(ESC_FG_GREEN "Device Attached.\r\n" ESC_FG_WHITE));
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_ENUMERATING);
\r
}
\r
\r
-void EVENT_USB_DeviceUnattached(void)
\r
+void EVENT_USB_
Host_
DeviceUnattached(void)
\r
{
\r
puts_P(PSTR(ESC_FG_GREEN "\r\nDevice Unattached.\r\n" ESC_FG_WHITE));
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
}
\r
\r
{
\r
puts_P(PSTR(ESC_FG_GREEN "\r\nDevice Unattached.\r\n" ESC_FG_WHITE));
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
}
\r
\r
-void EVENT_USB_DeviceEnumerationComplete(void)
\r
+void EVENT_USB_
Host_
DeviceEnumerationComplete(void)
\r
{
\r
LEDs_SetAllLEDs(LEDMASK_USB_READY);
\r
}
\r
\r
{
\r
LEDs_SetAllLEDs(LEDMASK_USB_READY);
\r
}
\r
\r
-void EVENT_USB_HostError(uint8_t ErrorCode)
\r
+void EVENT_USB_Host
_Host
Error(uint8_t ErrorCode)
\r
{
\r
USB_ShutDown();
\r
\r
{
\r
USB_ShutDown();
\r
\r
@@
-105,7
+105,7
@@
void EVENT_USB_HostError(uint8_t ErrorCode)
for(;;);
\r
}
\r
\r
for(;;);
\r
}
\r
\r
-void EVENT_USB_DeviceEnumerationFailed(uint8_t ErrorCode, uint8_t SubErrorCode)
\r
+void EVENT_USB_
Host_
DeviceEnumerationFailed(uint8_t ErrorCode, uint8_t SubErrorCode)
\r
{
\r
puts_P(PSTR(ESC_FG_RED "Dev Enum Error\r\n"));
\r
printf_P(PSTR(" -- Error Code %d\r\n"), ErrorCode);
\r
{
\r
puts_P(PSTR(ESC_FG_RED "Dev Enum Error\r\n"));
\r
printf_P(PSTR(" -- Error Code %d\r\n"), ErrorCode);
\r
@@
-158,9
+158,6
@@
void Bluetooth_Management_Task(void)
break;
\r
}
\r
\r
break;
\r
}
\r
\r
- USB_HostState = HOST_STATE_Configured;
\r
- break;
\r
- case HOST_STATE_Configured:
\r
puts_P(PSTR("Getting Config Data.\r\n"));
\r
\r
/* Get and process the configuration descriptor data */
\r
puts_P(PSTR("Getting Config Data.\r\n"));
\r
\r
/* Get and process the configuration descriptor data */
\r
@@
-183,7
+180,7
@@
void Bluetooth_Management_Task(void)
\r
puts_P(PSTR("Bluetooth Dongle Enumerated.\r\n"));
\r
\r
\r
puts_P(PSTR("Bluetooth Dongle Enumerated.\r\n"));
\r
\r
- USB_HostState = HOST_STATE_
Ready
;
\r
+ USB_HostState = HOST_STATE_
Configured
;
\r
break;
\r
}
\r
}
\r
break;
\r
}
\r
}
\r