Make Bluetooth signalling handler routines use the generic Bluetooth_SendPacket(...
[pub/USBasp.git] / Demos / Host / Incomplete / BluetoothHost / Lib / BluetoothACLPackets.h
index 6038ea4..d9d07cc 100644 (file)
@@ -41,8 +41,8 @@
                #include "BluetoothStack.h"\r
                \r
        /* Macros: */\r
-               #define BT_ACL_DEBUG(s, ...)              printf_P(PSTR("(ACL) " s "\r\n"), __VA_ARGS__)\r
-               #define ACL_DEBUG_LEVEL                   1\r
+               #define BT_ACL_DEBUG(l, s, ...)           do { if (ACL_DEBUG_LEVEL >= l) printf_P(PSTR("(ACL) " s "\r\n"), __VA_ARGS__); } while (0)\r
+               #define ACL_DEBUG_LEVEL                   2\r
 \r
                #define BT_CHANNEL_SIGNALING              0x0001\r
                #define BT_CHANNEL_CONNECTIONLESS         0x0002\r
@@ -71,6 +71,8 @@
                #define BT_CONFIGURATION_REJECTED         0x0002\r
                #define BT_CONFIGURATION_UNKNOWNOPTIONS   0x0003\r
                \r
+               #define BT_CONFIG_OPTION_MTU              1\r
+               \r
        /* Type Defines: */\r
                typedef struct\r
                {\r
                        uint16_t InfoType;\r
                        uint16_t Result;\r
                } BT_Signal_InformationResp_t;\r
+               \r
+               typedef struct\r
+               {\r
+                       uint8_t  Type;\r
+                       uint16_t Length;\r
+               } BT_Config_Option_Header_t;\r
 \r
        /* Function Prototypes: */\r
                void    Bluetooth_ACLTask(void);\r
-               uint8_t Bluetooth_SendPacket(uint8_t* Data, uint16_t DataLen, Bluetooth_Channel_t* Channel);\r
                \r
                #if defined(INCLUDE_FROM_BLUETOOTH_ACLPACKETS_C)\r
                        static void Bluetooth_ProcessACLPackets(void);\r