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_ESCO 0 15 #define BT_DRIVER_SUPPORTS_SCO 0 16 #define BT_DRIVER_SUPPORTS_ACL 0 17 18 /* TODO: move exclusive header for drivers*/ 19 #define BT_DRIVER_RXCOVERAGE (BT_DRIVER_SUPPORTS_EVT+BT_DRIVER_SUPPORTS_ACL+BT_DRIVER_SUPPORTS_SCO+BT_DRIVER_SUPPORTS_ESCO) 20 #define BT_DRIVER_TXCOVERAGE (BT_DRIVER_SUPPORTS_CMD+BT_DRIVER_SUPPORTS_ACL+BT_DRIVER_SUPPORTS_SCO+BT_DRIVER_SUPPORTS_ESCO) 21 22 #if BT_DRIVER_RXCOVERAGE<1 || BT_DRIVER_TXCOVERAGE<1 23 #error incomplete Bluetooth driver Commands and Events should be implemented 24 #endif 25 26 #define BT_SURVIVE_WITHOUT_HCI 27 #define BT_SURVIVE_WITHOUT_NET_BUFFERS 28 29 //////////////////////////////////// 30 31 #ifndef BLUETOOTH_DEVICE_TRANSPORT 32 #error BLUETOOTH_DEVICE_TRANSPORT must be defined to build the publishing path 33 #endif 34 35 #ifndef BLUETOOTH_DEVICE_NAME 36 #error BLUETOOTH_DEVICE_NAME must be defined to build the publishing path 37 #endif 38 39 #define BLUETOOTH_DEVICE_DEVFS_NAME BLUETOOTH_DEVICE_TRANSPORT BLUETOOTH_DEVICE_NAME 40 #define BLUETOOTH_DEVICE_PATH "bluetooth/" BLUETOOTH_DEVICE_DEVFS_NAME 41 42 43 #endif 44