Add user callback function to the Bluetooth host demo to filter out connections from...
[pub/USBasp.git] / Demos / Host / Incomplete / BluetoothHost / BluetoothHost.c
index 312d716..338997f 100644 (file)
 \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
@@ -56,7 +49,7 @@ int main(void)
 \r
        for (;;)\r
        {\r
-               Bluetooth_Stack_Task();\r
+               Bluetooth_Stack_USBTask();\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
-                       Bluetooth_State_Init();\r
+                       Bluetooth_Stack_Init();\r
 \r
                        USB_HostState = HOST_STATE_Configured;\r
                        break;\r