Fixed HID Device Class Driver not allocating a temporary buffer when the host request...
[pub/lufa.git] / Demos / Host / Incomplete / BluetoothHost / Lib / BluetoothHCICommands.c
index 55c7518..2f78621 100644 (file)
@@ -73,11 +73,11 @@ void Bluetooth_HCITask(void)
                                switch (HCIEventHeader.EventCode)\r
                                {\r
                                        case EVENT_COMMAND_COMPLETE:\r
-                                               BT_HCI_DEBUG(1, "<< Command Complete", NULL);\r
+                                               BT_HCI_DEBUG(1, "<< Command Complete");\r
                                                Bluetooth_HCIProcessingState = Bluetooth_HCINextState;\r
                                                break;\r
                                        case EVENT_COMMAND_STATUS:\r
-                                               BT_HCI_DEBUG(1, "<< Command Status", NULL);\r
+                                               BT_HCI_DEBUG(1, "<< Command Status");\r
                                                BT_HCI_DEBUG(2, "-- Status Code: 0x%02X", (((BT_HCIEvent_CommandStatus_t*)&EventParams)->Status));\r
 \r
                                                /* If the execution of a command failed, reset the stack */\r
@@ -85,7 +85,7 @@ void Bluetooth_HCITask(void)
                                                  Bluetooth_HCIProcessingState = Bluetooth_Init;\r
                                                break;\r
                                        case EVENT_CONNECTION_REQUEST:\r
-                                               BT_HCI_DEBUG(1, "<< Connection Request", NULL);\r
+                                               BT_HCI_DEBUG(1, "<< Connection Request");\r
                                                BT_HCI_DEBUG(2, "-- Link Type: 0x%02X", (((BT_HCIEvent_ConnectionRequest_t*)&EventParams)->LinkType));\r
 \r
                                                /* Need to store the remote device's BT address in a temporary buffer for later use */\r
@@ -106,7 +106,7 @@ void Bluetooth_HCITask(void)
 \r
                                                break;\r
                                        case EVENT_PIN_CODE_REQUEST:\r
-                                               BT_HCI_DEBUG(1, "<< Pin Code Request", NULL);\r
+                                               BT_HCI_DEBUG(1, "<< Pin Code Request");\r
 \r
                                                /* Need to store the remote device's BT address in a temporary buffer for later use */\r
                                                memcpy(Bluetooth_TempDeviceAddress,\r
@@ -116,7 +116,7 @@ void Bluetooth_HCITask(void)
                                                Bluetooth_HCIProcessingState = Bluetooth_Conn_SendPINCode;\r
                                                break;\r
                                        case EVENT_LINK_KEY_REQUEST:\r
-                                               BT_HCI_DEBUG(1, "<< Link Key Request", NULL);\r
+                                               BT_HCI_DEBUG(1, "<< Link Key Request");\r
                                                \r
                                                /* Need to store the remote device's BT address in a temporary buffer for later use */\r
                                                memcpy(Bluetooth_TempDeviceAddress,\r
@@ -126,7 +126,7 @@ void Bluetooth_HCITask(void)
                                                Bluetooth_HCIProcessingState = Bluetooth_Conn_SendLinkKeyNAK;\r
                                                break;\r
                                        case EVENT_CONNECTION_COMPLETE:\r
-                                               BT_HCI_DEBUG(1, "<< Connection Complete", NULL);\r
+                                               BT_HCI_DEBUG(1, "<< Connection Complete");\r
                                                BT_HCI_DEBUG(2, "-- Handle: 0x%04X", ((BT_HCIEvent_ConnectionComplete_t*)&EventParams)->ConnectionHandle);\r
 \r
                                                /* Need to store the remote device's BT address in a temporary buffer for later use */\r
@@ -141,7 +141,7 @@ void Bluetooth_HCITask(void)
                                                Bluetooth_ConnectionComplete();                                         \r
                                                break;\r
                                        case EVENT_DISCONNECTION_COMPLETE:\r
-                                               BT_HCI_DEBUG(1, "<< Disconnection Complete", NULL);\r
+                                               BT_HCI_DEBUG(1, "<< Disconnection Complete");\r
 \r
                                                /* Device disconnected, indicate connection information no longer valid */\r
                                                Bluetooth_Connection.IsConnected = false;\r
@@ -157,7 +157,7 @@ void Bluetooth_HCITask(void)
                        \r
                        break;\r
                case Bluetooth_Init:\r
-                       BT_HCI_DEBUG(1, "# Init", NULL);\r
+                       BT_HCI_DEBUG(1, "# Init");\r
 \r
                        /* Reset the connection information structure to destroy any previous connection state */\r
                        memset(&Bluetooth_Connection, 0x00, sizeof(Bluetooth_Connection));\r
@@ -165,7 +165,7 @@ void Bluetooth_HCITask(void)
                        Bluetooth_HCIProcessingState = Bluetooth_Init_Reset; \r
                        break;\r
                case Bluetooth_Init_Reset:\r
-                       BT_HCI_DEBUG(1, "# Reset", NULL);\r
+                       BT_HCI_DEBUG(1, "# Reset");\r
 \r
                        HCICommandHeader = (BT_HCICommand_Header_t)\r
                        {\r
@@ -180,7 +180,7 @@ void Bluetooth_HCITask(void)
                        Bluetooth_HCIProcessingState = Bluetooth_ProcessEvents;\r
                        break;\r
                case Bluetooth_Init_SetLocalName:\r
-                       BT_HCI_DEBUG(1, "# Set Local Name", NULL);\r
+                       BT_HCI_DEBUG(1, "# Set Local Name");\r
 \r
                        HCICommandHeader = (BT_HCICommand_Header_t)\r
                                {\r
@@ -195,7 +195,7 @@ void Bluetooth_HCITask(void)
                        Bluetooth_HCIProcessingState = Bluetooth_ProcessEvents;\r
                        break;\r
                case Bluetooth_Init_SetDeviceClass:\r
-                       BT_HCI_DEBUG(1, "# Set Device Class", NULL);\r
+                       BT_HCI_DEBUG(1, "# Set Device Class");\r
 \r
                        HCICommandHeader = (BT_HCICommand_Header_t)\r
                                {\r
@@ -210,7 +210,7 @@ void Bluetooth_HCITask(void)
                        Bluetooth_HCIProcessingState = Bluetooth_ProcessEvents;\r
                        break;\r
                case Bluetooth_Init_WriteScanEnable:\r
-                       BT_HCI_DEBUG(1, "# Write Scan Enable", NULL);\r
+                       BT_HCI_DEBUG(1, "# Write Scan Enable");\r
 \r
                        HCICommandHeader = (BT_HCICommand_Header_t)\r
                        {\r
@@ -227,7 +227,7 @@ void Bluetooth_HCITask(void)
                        Bluetooth_HCIProcessingState = Bluetooth_ProcessEvents;\r
                        break;\r
                case Bluetooth_Conn_AcceptConnection:\r
-                       BT_HCI_DEBUG(1, "# Accept Connection", NULL);\r
+                       BT_HCI_DEBUG(1, "# Accept Connection");\r
 \r
                        HCICommandHeader = (BT_HCICommand_Header_t)\r
                                {\r
@@ -248,7 +248,7 @@ void Bluetooth_HCITask(void)
                        Bluetooth_HCIProcessingState = Bluetooth_ProcessEvents;\r
                        break;\r
                case Bluetooth_Conn_RejectConnection:\r
-                       BT_HCI_DEBUG(1, "# Reject Connection", NULL);\r
+                       BT_HCI_DEBUG(1, "# Reject Connection");\r
 \r
                        HCICommandHeader = (BT_HCICommand_Header_t)\r
                                {\r
@@ -268,7 +268,7 @@ void Bluetooth_HCITask(void)
                        Bluetooth_HCIProcessingState = Bluetooth_ProcessEvents;\r
                        break;\r
                case Bluetooth_Conn_SendPINCode:\r
-                       BT_HCI_DEBUG(1, "# Send Pin Code", NULL);\r
+                       BT_HCI_DEBUG(1, "# Send Pin Code");\r
 \r
                        HCICommandHeader = (BT_HCICommand_Header_t)\r
                                {\r
@@ -289,7 +289,7 @@ void Bluetooth_HCITask(void)
                        Bluetooth_HCIProcessingState = Bluetooth_ProcessEvents;\r
                        break;\r
                case Bluetooth_Conn_SendLinkKeyNAK:\r
-                       BT_HCI_DEBUG(1, "# Send Link Key NAK", NULL);\r
+                       BT_HCI_DEBUG(1, "# Send Link Key NAK");\r
 \r
                        HCICommandHeader = (BT_HCICommand_Header_t)\r
                                {\r