Add LUFA-side channel open/close routines, add signalling handlers for the creation...
[pub/USBasp.git] / Demos / Host / Incomplete / BluetoothHost / Lib / BluetoothStack.c
index 11b6a61..ec1f637 100644 (file)
@@ -68,31 +68,3 @@ Bluetooth_Channel_t* Bluetooth_GetChannelData(uint16_t ChannelNumber, bool Searc
 \r
        return NULL;\r
 }\r
 \r
        return NULL;\r
 }\r
-\r
-Bluetooth_Channel_t* Bluetooth_InitChannelData(uint16_t RemoteChannelNumber, uint16_t PSM)\r
-{\r
-       Bluetooth_Channel_t* ChannelData = Bluetooth_GetChannelData(RemoteChannelNumber, false);\r
-\r
-       if (ChannelData == NULL)\r
-       {\r
-               for (uint8_t i = 0; i < BLUETOOTH_MAX_OPEN_CHANNELS; i++)\r
-               {\r
-                       if (Bluetooth_Connection.Channels[i].State == Channel_Closed)\r
-                       {\r
-                               ChannelData = &Bluetooth_Connection.Channels[i];                                \r
-                               ChannelData->LocalNumber = (BLUETOOTH_CHANNELNUMBER_BASEOFFSET + i);\r
-                               break;\r
-                       }\r
-               }\r
-       }\r
-\r
-       if (ChannelData != NULL)\r
-       {\r
-               ChannelData->RemoteNumber = RemoteChannelNumber;\r
-               ChannelData->PSM          = PSM;\r
-               ChannelData->LocalMTU     = MAXIMUM_CHANNEL_MTU;\r
-               ChannelData->State        = Channel_Config_WaitConfig;\r
-       }\r
-\r
-       return ChannelData;\r
-}\r