1/* 2 * Copyright 2007 Oliver Ruiz Dorantes, oliver.ruiz.dorantes_at_gmail.com 3 * All rights reserved. Distributed under the terms of the MIT License. 4 */ 5#ifndef _H2CFG_H_ 6#define _H2CFG_H_ 7 8 9#define BT_DRIVER_SUPPORTS_CMD 1 10#define BT_DRIVER_SUPPORTS_EVT 1 11#define BT_DRIVER_SUPPORTS_ACL 1 12#define BT_DRIVER_SUPPORTS_SCO 1 13#define BT_DRIVER_SUPPORTS_ESCO 0 14 15 16// TODO: move exclusive header for drivers 17#define BT_DRIVER_RXCOVERAGE (BT_DRIVER_SUPPORTS_EVT + BT_DRIVER_SUPPORTS_ACL \ 18 + BT_DRIVER_SUPPORTS_SCO + BT_DRIVER_SUPPORTS_ESCO) 19#define BT_DRIVER_TXCOVERAGE (BT_DRIVER_SUPPORTS_CMD + BT_DRIVER_SUPPORTS_ACL \ 20 + 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#ifndef BLUETOOTH_DEVICE_TRANSPORT 30#error BLUETOOTH_DEVICE_TRANSPORT must be defined to build the publishing path 31#endif 32 33#ifndef BLUETOOTH_DEVICE_NAME 34#error BLUETOOTH_DEVICE_NAME must be defined to build the publishing path 35#endif 36 37#define BLUETOOTH_DEVICE_DEVFS_NAME BLUETOOTH_DEVICE_TRANSPORT \ 38 BLUETOOTH_DEVICE_NAME 39#define BLUETOOTH_DEVICE_PATH "bluetooth/" BLUETOOTH_DEVICE_TRANSPORT "/" \ 40 BLUETOOTH_DEVICE_DEVFS_NAME 41 42 43#endif 44 45