1 /* 2 * Copyright 2007 Oliver Ruiz Dorantes, oliver.ruiz.dorantes_at_gmail.com 3 * 4 * All rights reserved. Distributed under the terms of the MIT License. 5 * 6 */ 7 8 #ifndef _H2CFG_H_ 9 #define _H2CFG_H_ 10 11 12 #define BT_DRIVER_SUPPORTS_CMD 1 13 #define BT_DRIVER_SUPPORTS_EVT 1 14 #define BT_DRIVER_SUPPORTS_ACL 1 15 #define BT_DRIVER_SUPPORTS_SCO 0 16 #define BT_DRIVER_SUPPORTS_ESCO 0 17 18 19 20 /* TODO: move exclusive header for drivers*/ 21 #define BT_DRIVER_RXCOVERAGE (BT_DRIVER_SUPPORTS_EVT+BT_DRIVER_SUPPORTS_ACL+BT_DRIVER_SUPPORTS_SCO+BT_DRIVER_SUPPORTS_ESCO) 22 #define BT_DRIVER_TXCOVERAGE (BT_DRIVER_SUPPORTS_CMD+BT_DRIVER_SUPPORTS_ACL+BT_DRIVER_SUPPORTS_SCO+BT_DRIVER_SUPPORTS_ESCO) 23 24 #if BT_DRIVER_RXCOVERAGE<1 || BT_DRIVER_TXCOVERAGE<1 25 #error incomplete Bluetooth driver Commands and Events should be implemented 26 #endif 27 28 #define BT_SURVIVE_WITHOUT_HCI 29 //#define BT_SURVIVE_WITHOUT_NET_BUFFERS 30 31 //////////////////////////////////// 32 33 #ifndef BLUETOOTH_DEVICE_TRANSPORT 34 #error BLUETOOTH_DEVICE_TRANSPORT must be defined to build the publishing path 35 #endif 36 37 #ifndef BLUETOOTH_DEVICE_NAME 38 #error BLUETOOTH_DEVICE_NAME must be defined to build the publishing path 39 #endif 40 41 #define BLUETOOTH_DEVICE_DEVFS_NAME BLUETOOTH_DEVICE_TRANSPORT BLUETOOTH_DEVICE_NAME 42 #define BLUETOOTH_DEVICE_PATH "bluetooth/" BLUETOOTH_DEVICE_DEVFS_NAME 43 44 45 #endif 46