added #include guard to btstack-config.h

This commit is contained in:
matthias.ringwald@gmail.com 2014-10-14 20:00:04 +00:00
parent b3ed86b418
commit 6e0f0421a3
11 changed files with 74 additions and 10 deletions

View File

@ -1,3 +1,7 @@
#ifndef __BTSTACK_CONFIG
#define __BTSTACK_CONFIG
#define EMBEDDED
#define HAVE_INIT_SCRIPT
@ -26,3 +30,4 @@
#define MAX_NO_DB_MEM_DEVICE_NAMES 0
#define MAX_NO_DB_MEM_SERVICES 1
#endif

View File

@ -1,3 +1,7 @@
#ifndef __BTSTACK_CONFIG
#define __BTSTACK_CONFIG
#define EMBEDDED
#define HAVE_INIT_SCRIPT
@ -26,3 +30,4 @@
#define MAX_NO_DB_MEM_DEVICE_NAMES 0
#define MAX_NO_DB_MEM_SERVICES 0
#endif

View File

@ -1,3 +1,7 @@
#ifndef __BTSTACK_CONFIG
#define __BTSTACK_CONFIG
#define EMBEDDED
#define HAVE_INIT_SCRIPT
@ -26,3 +30,5 @@
#define MAX_NO_DB_MEM_DEVICE_NAMES 0
#define MAX_NO_DB_MEM_SERVICES 1
#endif

View File

@ -114,7 +114,15 @@ echo
# create btstack-config.h
rm -f btstack-config.h
echo "// btstack-config.h created by configure for BTstack " `date`> btstack-config.h
echo "//" >> btstack-config.h
echo "// btstack-config.h" >> btstack-config.h
echo "// created by configure for BTstack " >> btstack-config.h
echo "//" `date` >> btstack-config.h
echo "//" >> btstack-config.h
echo >> btstack-config.h
echo "#ifndef __BTSTACK_CONFIG" >> btstack-config.h
echo "#define __BTSTACK_CONFIG" >> btstack-config.h
echo >> btstack-config.h
if test "x$HCI_TRANSPORT" = xUSB; then
USB_SOURCES=hci_transport_h2_libusb.c
echo "#define HAVE_TRANSPORT_USB" >> btstack-config.h
@ -153,6 +161,8 @@ echo "#define ENABLE_LOG_INFO " >> btstack-config.h
echo "#define ENABLE_LOG_ERROR" >> btstack-config.h
echo "#define HCI_ACL_PAYLOAD_SIZE 1021" >> btstack-config.h
echo "#define SDP_DES_DUMP" >> btstack-config.h
echo >> btstack-config.h
echo "#endif" >> btstack-config.h
AC_SUBST(HAVE_LIBUSB)
AC_SUBST(REMOTE_DEVICE_DB_SOURCES)

View File

@ -1,3 +1,8 @@
// config.h created by configure for BTstack Tue Jun 4 23:10:20 CEST 2013
#ifndef __BTSTACK_CONFIG
#define __BTSTACK_CONFIG
#define EMBEDDED
#define HAVE_INIT_SCRIPT
@ -26,3 +31,4 @@
#define MAX_NO_DB_MEM_DEVICE_NAMES 0
#define MAX_NO_DB_MEM_SERVICES 1
#endif

View File

@ -1,4 +1,8 @@
// config.h created by configure for BTstack Tue Jun 4 23:10:20 CEST 2013
#ifndef __BTSTACK_CONFIG
#define __BTSTACK_CONFIG
#define HAVE_TRANSPORT_USB
#define HAVE_BLE
#define USE_POSIX_RUN_LOOP
@ -14,4 +18,6 @@
#define ENABLE_LOG_ERROR
#define HCI_ACL_PAYLOAD_SIZE 1021
#define HAVE_HCI_DUMP
#define SDP_DES_DUMP
#define SDP_DES_DUMP
#endif

View File

@ -1,4 +1,12 @@
// btstack-config.h created by configure for BTstack Sun Jan 19 18:35:17 CET 2014
//
// btstack-config.h
// created by configure for BTstack
// Tue Oct 14 21:52:44 CEST 2014
//
#ifndef __BTSTACK_CONFIG
#define __BTSTACK_CONFIG
#define HAVE_TRANSPORT_H4
#define UART_DEVICE "/dev/tty.bluetooth"
#define UART_SPEED 921600
@ -19,3 +27,5 @@
#define ENABLE_LOG_ERROR
#define HCI_ACL_PAYLOAD_SIZE 1021
#define SDP_DES_DUMP
#endif

View File

@ -1,3 +1,6 @@
#ifndef __BTSTACK_CONFIG
#define __BTSTACK_CONFIG
#define EMBEDDED
#define HAVE_BLE
@ -27,3 +30,5 @@
#define MAX_NO_DB_MEM_SERVICES 1
#define MAX_NO_BNEP_SERVICES 0
#define MAX_NO_BNEP_CHANNELS 0
#endif

View File

@ -1,6 +1,9 @@
// config.h created by configure for BTstack Sun Sep 25 16:06:59 CEST 2011
#ifndef __CONFIG_H
#define __CONFIG_H
#ifndef __BTSTACK_CONFIG
#define __BTSTACK_CONFIG
#define HAVE_TRANSPORT_H4
#define UART_DEVICE "/dev/tty.usbserial-A600eIDu"
#define UART_SPEED 115200
@ -15,4 +18,4 @@
#define HCI_ACL_PAYLOAD_SIZE 1021
// #define HCI_ACL_PAYLOAD_SIZE 52
#endif // __CONFIG_H
#endif

View File

@ -1,6 +1,8 @@
// config.h created by configure for BTstack Sun Sep 25 16:06:59 CEST 2011
#ifndef __CONFIG_H
#define __CONFIG_H
#ifndef __BTSTACK_CONFIG
#define __BTSTACK_CONFIG
#define HAVE_TRANSPORT_H4
#define UART_DEVICE "/dev/tty.usbserial-A600eIDu"
#define UART_SPEED 115200
@ -15,4 +17,4 @@
#define HCI_ACL_PAYLOAD_SIZE 1021
// #define HCI_ACL_PAYLOAD_SIZE 52
#endif // __CONFIG_H
#endif

View File

@ -1,4 +1,8 @@
// config.h created by configure for BTstack Tue Jun 4 23:10:20 CEST 2013
#ifndef __BTSTACK_CONFIG
#define __BTSTACK_CONFIG
#define HAVE_TRANSPORT_USB
#define HAVE_BLE
#define USE_POSIX_RUN_LOOP
@ -14,4 +18,6 @@
#define ENABLE_LOG_ERROR
#define HCI_ACL_PAYLOAD_SIZE 1021
#define HAVE_HCI_DUMP
#define SDP_DES_DUMP
#define SDP_DES_DUMP
#endif