projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add user callback function to the Bluetooth host demo to filter out connections from...
[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
312d716
..
338997f
100644
(file)
--- a/
Demos/Host/Incomplete/BluetoothHost/BluetoothHost.c
+++ b/
Demos/Host/Incomplete/BluetoothHost/BluetoothHost.c
@@
-36,13
+36,6
@@
\r
#include "BluetoothHost.h"
\r
\r
\r
#include "BluetoothHost.h"
\r
\r
-Bluetooth_Device_t Bluetooth_DeviceConfiguration =
\r
- {
\r
- Class: (DEVICE_CLASS_SERVICE_CAPTURING | DEVICE_CLASS_MAJOR_COMPUTER | DEVICE_CLASS_MINOR_COMPUTER_PALM),
\r
- PINCode: "0000",
\r
- Name: "LUFA Bluetooth Demo"
\r
- };
\r
-
\r
/** Main program entry point. This routine configures the hardware required by the application, then
\r
* enters a loop to run the application tasks in sequence.
\r
*/
\r
/** Main program entry point. This routine configures the hardware required by the application, then
\r
* enters a loop to run the application tasks in sequence.
\r
*/
\r
@@
-56,7
+49,7
@@
int main(void)
\r
for (;;)
\r
{
\r
\r
for (;;)
\r
{
\r
- Bluetooth_Stack_Task();
\r
+ Bluetooth_Stack_
USB
Task();
\r
Bluetooth_Host_Task();
\r
USB_USBTask();
\r
}
\r
Bluetooth_Host_Task();
\r
USB_USBTask();
\r
}
\r
@@
-196,7
+189,7
@@
void Bluetooth_Host_Task(void)
puts_P(PSTR("Bluetooth Dongle Enumerated.\r\n"));
\r
\r
/* Initialize the Bluetooth stack */
\r
puts_P(PSTR("Bluetooth Dongle Enumerated.\r\n"));
\r
\r
/* Initialize the Bluetooth stack */
\r
- Bluetooth_Sta
te
_Init();
\r
+ Bluetooth_Sta
ck
_Init();
\r
\r
USB_HostState = HOST_STATE_Configured;
\r
break;
\r
\r
USB_HostState = HOST_STATE_Configured;
\r
break;
\r