removed btstack/include folder

This commit is contained in:
Matthias Ringwald 2015-10-15 16:33:34 +02:00
parent 35c5232ade
commit 195a80287b
169 changed files with 287 additions and 291 deletions

View File

@ -47,9 +47,9 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <btstack/utils.h> #include "utils.h"
#include <btstack/sdp_util.h> #include "sdp_util.h"
#include <btstack/hci_cmds.h> #include "hci_cmds.h"
#include "hci.h" #include "hci.h"
#include "ad_parser.h" #include "ad_parser.h"

View File

@ -42,8 +42,8 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <btstack/run_loop.h> #include "run_loop.h"
#include <btstack/sdp_util.h> #include "sdp_util.h"
#include "ancs_client_lib.h" #include "ancs_client_lib.h"

View File

@ -41,7 +41,7 @@
#include "att.h" #include "att.h"
#include "debug.h" #include "debug.h"
#include <btstack/utils.h> #include "utils.h"
// Buetooth Base UUID 00000000-0000-1000-8000-00805F9B34FB in little endian // Buetooth Base UUID 00000000-0000-1000-8000-00805F9B34FB in little endian
static const uint8_t bluetooth_base_uuid[] = { 0xfb, 0x34, 0x9b, 0x5f, 0x80, 0x00, 0x00, 0x80, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; static const uint8_t bluetooth_base_uuid[] = { 0xfb, 0x34, 0x9b, 0x5f, 0x80, 0x00, 0x00, 0x80, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };

View File

@ -40,7 +40,7 @@
#include "att_db_util.h" #include "att_db_util.h"
#include "att.h" #include "att.h"
#include <btstack/utils.h> #include "utils.h"
#include "debug.h" #include "debug.h"
// ATT DB Storage // ATT DB Storage

View File

@ -43,7 +43,7 @@
#ifndef __ATT_DISPATCH_H #ifndef __ATT_DISPATCH_H
#define __ATT_DISPATCH_H #define __ATT_DISPATCH_H
#include <btstack/btstack.h> #include "btstack.h"
#if defined __cplusplus #if defined __cplusplus
extern "C" { extern "C" {

View File

@ -48,7 +48,7 @@
#include "btstack-config.h" #include "btstack-config.h"
#include <btstack/run_loop.h> #include "run_loop.h"
#include "debug.h" #include "debug.h"
#include "btstack_memory.h" #include "btstack_memory.h"
#include "hci.h" #include "hci.h"

View File

@ -37,7 +37,7 @@
#ifndef __ATT_SERVER_H #ifndef __ATT_SERVER_H
#define __ATT_SERVER_H #define __ATT_SERVER_H
#include <btstack/btstack.h> #include "btstack.h"
#include <stdint.h> #include <stdint.h>
#include "att.h" #include "att.h"

View File

@ -42,8 +42,8 @@
extern "C" { extern "C" {
#endif #endif
#include <btstack/utils.h> #include "utils.h"
#include <btstack/hci_cmds.h> #include "hci_cmds.h"
/* API_START */ /* API_START */

View File

@ -39,10 +39,10 @@
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <btstack/run_loop.h> #include "run_loop.h"
#include <btstack/hci_cmds.h> #include "hci_cmds.h"
#include <btstack/utils.h> #include "utils.h"
#include <btstack/sdp_util.h> #include "sdp_util.h"
#include "btstack-config.h" #include "btstack-config.h"

View File

@ -38,7 +38,7 @@
#ifndef __LE_DEVICE_DB_H #ifndef __LE_DEVICE_DB_H
#define __LE_DEVICE_DB_H #define __LE_DEVICE_DB_H
#include <btstack/utils.h> #include "utils.h"
#if defined __cplusplus #if defined __cplusplus
extern "C" { extern "C" {

View File

@ -39,7 +39,7 @@
#include <string.h> #include <string.h>
#include <inttypes.h> #include <inttypes.h>
#include <btstack/linked_list.h> #include "linked_list.h"
#include "btstack_memory.h" #include "btstack_memory.h"
#include "debug.h" #include "debug.h"

View File

@ -38,8 +38,8 @@
#ifndef __SM_H #ifndef __SM_H
#define __SM_H #define __SM_H
#include <btstack/utils.h> #include "utils.h"
#include <btstack/btstack.h> #include "btstack.h"
#include <stdint.h> #include <stdint.h>
#if defined __cplusplus #if defined __cplusplus

View File

@ -41,7 +41,7 @@
#include <string.h> #include <string.h>
#include <btstack/sdp_util.h> #include "sdp_util.h"
#include "btstack-config.h" #include "btstack-config.h"
#include "hci.h" #include "hci.h"

View File

@ -50,7 +50,7 @@
#include "bt_control.h" #include "bt_control.h"
#include "debug.h" #include "debug.h"
#include <btstack/utils.h> #include "utils.h"
// minimal CSR init script to configure PSKEYs and activate them // minimal CSR init script to configure PSKEYs and activate them
static const uint8_t init_script[] = { static const uint8_t init_script[] = {

View File

@ -46,7 +46,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <btstack/btstack.h> #include "btstack.h"
#define MAX_DEVICES 10 #define MAX_DEVICES 10
struct device { struct device {

View File

@ -46,9 +46,9 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <btstack/btstack.h> #include "btstack.h"
#include <btstack/hci_cmds.h> #include "hci_cmds.h"
#include <btstack/sdp_util.h> #include "sdp_util.h"
int l2cap_reg_fail = 0; int l2cap_reg_fail = 0;

View File

@ -46,8 +46,8 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <btstack/btstack.h> #include "btstack.h"
#include <btstack/hci_cmds.h> #include "hci_cmds.h"
#define PSM_TEST 0xdead #define PSM_TEST 0xdead
#define PACKET_SIZE 1000 #define PACKET_SIZE 1000

View File

@ -44,7 +44,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <btstack/btstack.h> #include "btstack.h"
static void packet_handler(uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t size){ static void packet_handler(uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t size){

View File

@ -53,8 +53,8 @@
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <btstack/btstack.h> #include "btstack.h"
#include <btstack/sdp_util.h> #include "sdp_util.h"
// input from command line arguments // input from command line arguments
bd_addr_t addr = { }; bd_addr_t addr = { };

View File

@ -49,8 +49,8 @@
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <btstack/btstack.h> #include "btstack.h"
#include <btstack/sdp_util.h> #include "sdp_util.h"
// input from command line arguments // input from command line arguments
bd_addr_t addr = { }; bd_addr_t addr = { };

View File

@ -49,8 +49,8 @@
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <btstack/btstack.h> #include "btstack.h"
#include <btstack/sdp_util.h> #include "sdp_util.h"
#define NUM_ROWS 25 #define NUM_ROWS 25
#define NUM_COLS 80 #define NUM_COLS 80

View File

@ -46,8 +46,8 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <btstack/btstack.h> #include "btstack.h"
#include <btstack/hci_cmds.h> #include "hci_cmds.h"
// bd_addr_t addr = {0x00, 0x03, 0xc9, 0x3d, 0x77, 0x43 }; // Think Outside Keyboard // bd_addr_t addr = {0x00, 0x03, 0xc9, 0x3d, 0x77, 0x43 }; // Think Outside Keyboard
// bd_addr_t addr = {0x00, 0x19, 0x1d, 0x90, 0x44, 0x68 }; // WiiMote // bd_addr_t addr = {0x00, 0x19, 0x1d, 0x90, 0x44, 0x68 }; // WiiMote

View File

@ -94,7 +94,7 @@ PAN_OBJ = $(PAN:.c=.o)
default_target: all default_target: all
${BTSTACK_ROOT}/include/btstack/version.h: ${BTSTACK_ROOT}/src/version.h:
${BTSTACK_ROOT}/tools/get_version.sh ${BTSTACK_ROOT}/tools/get_version.sh
# compile .gatt descriptions # compile .gatt descriptions
@ -168,7 +168,7 @@ gap_le_advertisements: ${CORE_OBJ} ${COMMON_OBJ} ad_parser.c gap_le_advertisemen
clean: clean:
rm -f ${EXAMPLES} rm -f ${EXAMPLES}
rm -f *.o *.out *.hex rm -f *.o *.out *.hex
rm -f ${BTSTACK_ROOT}/include/btstack/version.h rm -f ${BTSTACK_ROOT}/src/version.h
rm -f ancs_client.h profile.h spp_and_le_counter.h rm -f ancs_client.h profile.h spp_and_le_counter.h
rm -rf *.dSYM rm -rf *.dSYM
rm -rf ${BTSTACK_ROOT}/ble/*.o rm -rf ${BTSTACK_ROOT}/ble/*.o

View File

@ -52,7 +52,7 @@
#include "btstack-config.h" #include "btstack-config.h"
#include <btstack/run_loop.h> #include "run_loop.h"
#include "debug.h" #include "debug.h"
#include "btstack_memory.h" #include "btstack_memory.h"

View File

@ -44,8 +44,8 @@
#include <string.h> #include <string.h>
#include <btstack/hci_cmds.h> #include "hci_cmds.h"
#include <btstack/run_loop.h> #include "run_loop.h"
#include "hci.h" #include "hci.h"
#include "gap.h" #include "gap.h"

View File

@ -55,8 +55,8 @@
#include "btstack-config.h" #include "btstack-config.h"
#include <btstack/run_loop.h> #include "run_loop.h"
#include <btstack/sdp_util.h> #include "sdp_util.h"
#include "debug.h" #include "debug.h"
#include "btstack_memory.h" #include "btstack_memory.h"

View File

@ -48,8 +48,8 @@
#include "btstack-config.h" #include "btstack-config.h"
#include <btstack/run_loop.h> #include "run_loop.h"
#include <btstack/sdp_util.h> #include "sdp_util.h"
#include "debug.h" #include "debug.h"
#include "btstack_memory.h" #include "btstack_memory.h"

View File

@ -50,7 +50,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <btstack/hci_cmds.h> #include "hci_cmds.h"
#include "btstack_memory.h" #include "btstack_memory.h"
#include "hci.h" #include "hci.h"

View File

@ -45,10 +45,10 @@
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <btstack/run_loop.h> #include "run_loop.h"
#include <btstack/hci_cmds.h> #include "hci_cmds.h"
#include <btstack/utils.h> #include "utils.h"
#include <btstack/sdp_util.h> #include "sdp_util.h"
#include "btstack-config.h" #include "btstack-config.h"

View File

@ -55,10 +55,10 @@
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <btstack/run_loop.h> #include "run_loop.h"
#include <btstack/hci_cmds.h> #include "hci_cmds.h"
#include <btstack/utils.h> #include "utils.h"
#include <btstack/sdp_util.h> #include "sdp_util.h"
#include "btstack-config.h" #include "btstack-config.h"

View File

@ -52,8 +52,8 @@
#include "btstack-config.h" #include "btstack-config.h"
#include <btstack/run_loop.h> #include "run_loop.h"
#include <btstack/sdp_util.h> #include "sdp_util.h"
#include "debug.h" #include "debug.h"
#include "btstack_memory.h" #include "btstack_memory.h"

View File

@ -56,8 +56,8 @@
#include "btstack-config.h" #include "btstack-config.h"
#include <btstack/run_loop.h> #include "run_loop.h"
#include <btstack/sdp_util.h> #include "sdp_util.h"
#include "debug.h" #include "debug.h"
#include "btstack_memory.h" #include "btstack_memory.h"

View File

@ -48,8 +48,8 @@
#include <stdint.h> #include <stdint.h>
#include <stdio.h> #include <stdio.h>
#include <btstack/run_loop.h> #include "run_loop.h"
#include <btstack/hal_led.h> #include "hal_led.h"
#define HEARTBEAT_PERIOD_MS 1000 #define HEARTBEAT_PERIOD_MS 1000

View File

@ -81,9 +81,9 @@
#include <linux/if_tun.h> #include <linux/if_tun.h>
#endif #endif
#include <btstack/hci_cmds.h> #include "hci_cmds.h"
#include <btstack/run_loop.h> #include "run_loop.h"
#include <btstack/sdp_util.h> #include "sdp_util.h"
#include "hci.h" #include "hci.h"
#include "btstack_memory.h" #include "btstack_memory.h"

View File

@ -51,9 +51,9 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <btstack/hci_cmds.h> #include "hci_cmds.h"
#include <btstack/run_loop.h> #include "run_loop.h"
#include <btstack/sdp_util.h> #include "sdp_util.h"
#include "hci.h" #include "hci.h"
#include "btstack_memory.h" #include "btstack_memory.h"

View File

@ -54,8 +54,8 @@
#include "sdp_client.h" #include "sdp_client.h"
#include "sdp_query_util.h" #include "sdp_query_util.h"
#include <btstack/hci_cmds.h> #include "hci_cmds.h"
#include <btstack/run_loop.h> #include "run_loop.h"
#include "hci.h" #include "hci.h"
#include "btstack_memory.h" #include "btstack_memory.h"

View File

@ -49,8 +49,8 @@
#include <string.h> #include <string.h>
#include <btstack/hci_cmds.h> #include "hci_cmds.h"
#include <btstack/run_loop.h> #include "run_loop.h"
#include "hci.h" #include "hci.h"
#include "btstack_memory.h" #include "btstack_memory.h"

View File

@ -54,8 +54,8 @@
#include "btstack-config.h" #include "btstack-config.h"
#include <btstack/run_loop.h> #include "run_loop.h"
#include <btstack/sdp_util.h> #include "sdp_util.h"
#include "debug.h" #include "debug.h"
#include "btstack_memory.h" #include "btstack_memory.h"

View File

@ -51,8 +51,8 @@
#include "btstack-config.h" #include "btstack-config.h"
#include <btstack/run_loop.h> #include "run_loop.h"
#include <btstack/sdp_util.h> #include "sdp_util.h"
#include "debug.h" #include "debug.h"
#include "btstack_memory.h" #include "btstack_memory.h"

View File

@ -49,9 +49,9 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <btstack/hci_cmds.h> #include "hci_cmds.h"
#include <btstack/run_loop.h> #include "run_loop.h"
#include <btstack/sdp_util.h> #include "sdp_util.h"
#include "hci.h" #include "hci.h"
#include "l2cap.h" #include "l2cap.h"

View File

@ -49,8 +49,8 @@
#include <string.h> #include <string.h>
#include <btstack/hci_cmds.h> #include "hci_cmds.h"
#include <btstack/run_loop.h> #include "run_loop.h"
#include "hci.h" #include "hci.h"
#include "btstack_memory.h" #include "btstack_memory.h"

View File

@ -1 +0,0 @@
version.h

View File

@ -16,12 +16,12 @@
#include "BTstack.h" #include "BTstack.h"
#include "btstack_memory.h" #include "btstack_memory.h"
#include "btstack/hal_tick.h" #include "hal_tick.h"
#include "btstack/hal_cpu.h" #include "hal_cpu.h"
#include "btstack/hci_cmds.h" #include "hci_cmds.h"
#include <btstack/utils.h> #include "utils.h"
#include <btstack/run_loop.h> #include "run_loop.h"
#include <btstack/sdp_util.h> #include "sdp_util.h"
#include "bt_control_em9301.h" #include "bt_control_em9301.h"
#include "hci.h" #include "hci.h"

View File

@ -4,7 +4,7 @@
#pragma once #pragma once
#include "att.h" #include "att.h"
#include <btstack/utils.h> #include "utils.h"
#include "gatt_client.h" #include "gatt_client.h"
#include "hci.h" #include "hci.h"
#include <stdint.h> #include <stdint.h>

View File

@ -5,7 +5,7 @@
DIR=. DIR=.
BTSTACK_ROOT=${DIR}/../.. BTSTACK_ROOT=${DIR}/../..
DUMMY=$(shell ) DUMMY=$(shell )
VERSION=`sed -n -e 's/^.*BTSTACK_VERSION \"\(.*\)\"/\1/p' ${BTSTACK_ROOT}/include/btstack/version.h` VERSION=`sed -n -e 's/^.*BTSTACK_VERSION \"\(.*\)\"/\1/p' ${BTSTACK_ROOT}/src/version.h`
BTSTACK_PACKAGE=/tmp/btstack BTSTACK_PACKAGE=/tmp/btstack
ARCHIVE=btstack-arduino-${VERSION}.zip ARCHIVE=btstack-arduino-${VERSION}.zip

View File

@ -12,7 +12,7 @@
#endif #endif
#include <SPI.h> #include <SPI.h>
#include "btstack/hal_uart_dma.h" #include "hal_uart_dma.h"
#define HAVE_SHUTDOWN #define HAVE_SHUTDOWN

View File

@ -40,9 +40,9 @@
* Created by Matthias Ringwald on 8/2/09. * Created by Matthias Ringwald on 8/2/09.
*/ */
#include <btstack/btstack.h> #include "btstack.h"
#include <btstack/run_loop.h> #include "run_loop.h"
#include "run_loop_private.h" #include "run_loop_private.h"
#include "debug.h" #include "debug.h"

View File

@ -43,11 +43,11 @@
* BTstack client API * BTstack client API
*/ */
#include <btstack/btstack.h> #include "btstack.h"
#include "l2cap.h" #include "l2cap.h"
#include "socket_connection.h" #include "socket_connection.h"
#include <btstack/run_loop.h> #include "run_loop.h"
#include <string.h> #include <string.h>
#include <unistd.h> #include <unistd.h>

View File

@ -55,11 +55,11 @@
#include <getopt.h> #include <getopt.h>
#include <btstack/btstack.h> #include "btstack.h"
#include <btstack/linked_list.h> #include "linked_list.h"
#include <btstack/run_loop.h> #include "run_loop.h"
#include <btstack/hci_cmds.h> #include "hci_cmds.h"
#include <btstack/version.h> #include "version.h"
#include "debug.h" #include "debug.h"
#include "hci.h" #include "hci.h"

View File

@ -51,7 +51,7 @@
#include "btstack-config.h" #include "btstack-config.h"
#include <btstack/btstack.h> #include "btstack.h"
#include <errno.h> #include <errno.h>
#include <fcntl.h> #include <fcntl.h>

View File

@ -45,7 +45,7 @@
#ifndef __SOCKET_CONNECTION_H #ifndef __SOCKET_CONNECTION_H
#define __SOCKET_CONNECTION_H #define __SOCKET_CONNECTION_H
#include <btstack/run_loop.h> #include "run_loop.h"
#include <stdint.h> #include <stdint.h>

View File

@ -57,10 +57,10 @@
#include "hal_usb.h" #include "hal_usb.h"
#include <btstack/ant_cmds.h> #include <btstack/ant_cmds.h>
#include <btstack/hci_cmds.h> #include "hci_cmds.h"
#include <btstack/run_loop.h> #include "run_loop.h"
#include <btstack/sdp_util.h> #include "sdp_util.h"
#include <btstack/utils.h> #include "utils.h"
#include "hci.h" #include "hci.h"
#include "l2cap.h" #include "l2cap.h"

View File

@ -54,9 +54,9 @@
#include "hal_compat.h" #include "hal_compat.h"
#include "hal_usb.h" #include "hal_usb.h"
#include <btstack/hci_cmds.h> #include "hci_cmds.h"
#include <btstack/run_loop.h> #include "run_loop.h"
#include <btstack/sdp_util.h> #include "sdp_util.h"
#include "hci.h" #include "hci.h"
#include "l2cap.h" #include "l2cap.h"

View File

@ -43,7 +43,7 @@
* *
*/ */
#include <btstack/hal_cpu.h> #include "hal_cpu.h"
#include "hal_board.h" #include "hal_board.h"
#include "hal_compat.h" #include "hal_compat.h"

View File

@ -47,7 +47,7 @@
#include <stdlib.h> #include <stdlib.h>
#include "hal_compat.h" #include "hal_compat.h"
#include <btstack/hal_tick.h> #include "hal_tick.h"
static void dummy_handler(void){}; static void dummy_handler(void){};

View File

@ -43,7 +43,7 @@
#include <msp430x54x.h> #include <msp430x54x.h>
#include "hal_compat.h" #include "hal_compat.h"
#include <btstack/hal_uart_dma.h> #include "hal_uart_dma.h"
extern void hal_cpu_set_uart_needed_during_sleep(uint8_t enabled); extern void hal_cpu_set_uart_needed_during_sleep(uint8_t enabled);

View File

@ -55,8 +55,8 @@
#include "hal_compat.h" #include "hal_compat.h"
#include "hal_usb.h" #include "hal_usb.h"
#include <btstack/hci_cmds.h> #include "hci_cmds.h"
#include <btstack/run_loop.h> #include "run_loop.h"
#include "hci.h" #include "hci.h"
#include "btstack_memory.h" #include "btstack_memory.h"

View File

@ -36,7 +36,7 @@
// //
#import <Foundation/Foundation.h> #import <Foundation/Foundation.h>
#include <btstack/utils.h> #include "utils.h"
#define kCODHID 0x2540 #define kCODHID 0x2540
#define kCODZeeMote 0x584 #define kCODZeeMote 0x584

View File

@ -37,7 +37,7 @@
#import <UIKit/UIKit.h> #import <UIKit/UIKit.h>
#include <btstack/hci_cmds.h> // for HCI_STATE #include "hci_cmds.h" // for HCI_STATE
#define PREFS_REMOTE_NAME @"RemoteName" #define PREFS_REMOTE_NAME @"RemoteName"
#define PREFS_LINK_KEY @"LinkKey" #define PREFS_LINK_KEY @"LinkKey"

View File

@ -38,7 +38,7 @@
#import <BTstack/BTInquiryViewController.h> #import <BTstack/BTInquiryViewController.h>
#import <BTstack/BTDevice.h> #import <BTstack/BTDevice.h>
#include <btstack/btstack.h> #include "btstack.h"
#include <dlfcn.h> #include <dlfcn.h>
#define INQUIRY_INTERVAL 3 #define INQUIRY_INTERVAL 3

View File

@ -44,9 +44,9 @@
#include <stdlib.h> #include <stdlib.h>
#include <strings.h> #include <strings.h>
#include <btstack/btstack.h> #include "btstack.h"
#include <btstack/run_loop.h> #include "run_loop.h"
#include <btstack/hci_cmds.h> #include "hci_cmds.h"
void packet_handler(uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t size){ void packet_handler(uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t size){
} }

View File

@ -26,4 +26,4 @@ CFLAGS += $(shell pkg-config libusb-1.0 --cflags)
LDFLAGS += $(shell pkg-config libusb-1.0 --libs) LDFLAGS += $(shell pkg-config libusb-1.0 --libs)
endif endif
all: ${BTSTACK_ROOT}/include/btstack/version.h ${EXAMPLES} all: ${BTSTACK_ROOT}/src/version.h ${EXAMPLES}

View File

@ -49,8 +49,8 @@
#include "btstack-config.h" #include "btstack-config.h"
#include <btstack/run_loop.h> #include "run_loop.h"
#include <btstack/hal_led.h> #include "hal_led.h"
#include "debug.h" #include "debug.h"
#include "btstack_memory.h" #include "btstack_memory.h"

View File

@ -57,10 +57,10 @@
#include "hal_usb.h" #include "hal_usb.h"
#include <btstack/ant_cmds.h> #include <btstack/ant_cmds.h>
#include <btstack/hci_cmds.h> #include "hci_cmds.h"
#include <btstack/run_loop.h> #include "run_loop.h"
#include <btstack/sdp_util.h> #include "sdp_util.h"
#include <btstack/utils.h> #include "utils.h"
#include "hci.h" #include "hci.h"
#include "l2cap.h" #include "l2cap.h"

View File

@ -65,7 +65,7 @@
#include "hal_usb.h" #include "hal_usb.h"
#include "UserExperienceGraphics.h" #include "UserExperienceGraphics.h"
#include <btstack/run_loop.h> #include "run_loop.h"
#include "btstack_memory.h" #include "btstack_memory.h"
#include "bt_control_cc256x.h" #include "bt_control_cc256x.h"

View File

@ -54,8 +54,8 @@
#include "UserExperienceGraphics.h" #include "UserExperienceGraphics.h"
#include <msp430x54x.h> #include <msp430x54x.h>
#include <btstack/run_loop.h> #include "run_loop.h"
#include <btstack/hci_cmds.h> #include "hci_cmds.h"
#include "btstack_memory.h" #include "btstack_memory.h"
#include "hci.h" #include "hci.h"
#include "l2cap.h" #include "l2cap.h"

View File

@ -54,9 +54,9 @@
#include "hal_compat.h" #include "hal_compat.h"
#include "hal_usb.h" #include "hal_usb.h"
#include <btstack/hci_cmds.h> #include "hci_cmds.h"
#include <btstack/run_loop.h> #include "run_loop.h"
#include <btstack/sdp_util.h> #include "sdp_util.h"
#include "hci.h" #include "hci.h"
#include "l2cap.h" #include "l2cap.h"

View File

@ -43,7 +43,7 @@
* *
*/ */
#include <btstack/hal_cpu.h> #include "hal_cpu.h"
#include "hal_board.h" #include "hal_board.h"
#include "hal_compat.h" #include "hal_compat.h"

View File

@ -47,7 +47,7 @@
#include <stdlib.h> #include <stdlib.h>
#include "hal_compat.h" #include "hal_compat.h"
#include <btstack/hal_tick.h> #include "hal_tick.h"
static void dummy_handler(void){}; static void dummy_handler(void){};

View File

@ -43,7 +43,7 @@
#include <msp430x54x.h> #include <msp430x54x.h>
#include "hal_compat.h" #include "hal_compat.h"
#include <btstack/hal_uart_dma.h> #include "hal_uart_dma.h"
extern void hal_cpu_set_uart_needed_during_sleep(uint8_t enabled); extern void hal_cpu_set_uart_needed_during_sleep(uint8_t enabled);

View File

@ -55,7 +55,7 @@
#include "hal_compat.h" #include "hal_compat.h"
#include "hal_usb.h" #include "hal_usb.h"
#include <btstack/run_loop.h> #include "run_loop.h"
#include "hci.h" #include "hci.h"
#include "btstack_memory.h" #include "btstack_memory.h"

View File

@ -1,4 +1,4 @@
#include <btstack/hal_led.h> #include "hal_led.h"
#include "hal_board.h" #include "hal_board.h"
#include <msp430.h> #include <msp430.h>

View File

@ -63,7 +63,7 @@
#include "hal_usb.h" #include "hal_usb.h"
#include "hal_usb.h" #include "hal_usb.h"
#include <btstack/run_loop.h> #include "run_loop.h"
#include "btstack_memory.h" #include "btstack_memory.h"
#include "bt_control_cc256x.h" #include "bt_control_cc256x.h"

View File

@ -43,7 +43,7 @@
* *
*/ */
#include <btstack/hal_cpu.h> #include "hal_cpu.h"
#include "hal_board.h" #include "hal_board.h"
#include "hal_compat.h" #include "hal_compat.h"

View File

@ -47,7 +47,7 @@
#include <stdlib.h> #include <stdlib.h>
#include "hal_compat.h" #include "hal_compat.h"
#include <btstack/hal_tick.h> #include "hal_tick.h"
static void dummy_handler(void){}; static void dummy_handler(void){};

View File

@ -43,7 +43,7 @@
#include <msp430.h> #include <msp430.h>
#include "hal_compat.h" #include "hal_compat.h"
#include <btstack/hal_uart_dma.h> #include "hal_uart_dma.h"
extern void hal_cpu_set_uart_needed_during_sleep(uint8_t enabled); extern void hal_cpu_set_uart_needed_during_sleep(uint8_t enabled);

View File

@ -53,9 +53,9 @@
#include "hal_compat.h" #include "hal_compat.h"
#include "hal_usb.h" #include "hal_usb.h"
#include <btstack/run_loop.h> #include "run_loop.h"
#include <btstack/hal_tick.h> #include "hal_tick.h"
#include <btstack/hal_cpu.h> #include "hal_cpu.h"
#include "hci.h" #include "hci.h"
#include "hci_dump.h" #include "hci_dump.h"

View File

@ -82,7 +82,7 @@ shell:
version: version:
$(BTSTACK_ROOT)/tools/get_version.sh $(BTSTACK_ROOT)/tools/get_version.sh
grep BTSTACK_DATE $(BTSTACK_ROOT)/include/btstack/version.h grep BTSTACK_DATE $(BTSTACK_ROOT)/src/version.h
BTstackDaemon: $(BTdaemon_OBJS) libbluetoothdrv.so BTstackDaemon: $(BTdaemon_OBJS) libbluetoothdrv.so
$(GCC) $(LDFLAGS) -o $@ libbluetoothdrv.so $^ $(GCC) $(LDFLAGS) -o $@ libbluetoothdrv.so $^

View File

@ -19,7 +19,7 @@ popd
pushd . pushd .
cd $DIR/../.. cd $DIR/../..
VERSION=`sed -n -e 's/^.*BTSTACK_VERSION \"\(.*\)\"/\1/p' include/btstack/version.h` VERSION=`sed -n -e 's/^.*BTSTACK_VERSION \"\(.*\)\"/\1/p' src/version.h`
ARCHIVE=btstack-android-mtk-$VERSION.tar.gz ARCHIVE=btstack-android-mtk-$VERSION.tar.gz
echo "Create Archive $ARCHIVE" echo "Create Archive $ARCHIVE"
rm -f $ARCHIVE rm -f $ARCHIVE

View File

@ -5,7 +5,7 @@
#include "btstack_port.h" #include "btstack_port.h"
#include "system_config.h" #include "system_config.h"
#include "bt_control_csr.h" #include "bt_control_csr.h"
#include <btstack/run_loop.h> #include "run_loop.h"
#include "hci_dump.h" #include "hci_dump.h"
#include "hci.h" #include "hci.h"
#include "hci_transport.h" #include "hci_transport.h"
@ -25,7 +25,7 @@ int btstack_main(int argc, const char * argv[]);
/// HAL Tick /// /// HAL Tick ///
#include <btstack/hal_tick.h> #include "hal_tick.h"
#define APP_TMR_ALARM_PERIOD 48825 #define APP_TMR_ALARM_PERIOD 48825
#define APP_LED_PORT PORT_CHANNEL_A #define APP_LED_PORT PORT_CHANNEL_A
@ -85,7 +85,7 @@ static void msleep(uint32_t delay) {
} }
/// HAL CPU /// /// HAL CPU ///
#include <btstack/hal_cpu.h> #include "hal_cpu.h"
void hal_cpu_disable_irqs(void){ void hal_cpu_disable_irqs(void){
// TODO implement // TODO implement
@ -101,7 +101,7 @@ void hal_cpu_enable_irqs_and_sleep(void){
/// HAL UART DMA /// /// HAL UART DMA ///
#include <btstack/hal_uart_dma.h> #include "hal_uart_dma.h"
// handlers // handlers
static void (*rx_done_handler)(void) = dummy_handler; static void (*rx_done_handler)(void) = dummy_handler;

View File

@ -37,4 +37,4 @@ EXAMPLES += ${EXAMPLES_CLI}
CFLAGS += -I${POSIX_ROOT}/src CFLAGS += -I${POSIX_ROOT}/src
endif endif
all: ${BTSTACK_ROOT}/include/btstack/version.h ${EXAMPLES} all: ${BTSTACK_ROOT}/src/version.h ${EXAMPLES}

View File

@ -49,7 +49,7 @@
#include "btstack-config.h" #include "btstack-config.h"
#include <btstack/run_loop.h> #include "run_loop.h"
#include "debug.h" #include "debug.h"
#include "btstack_memory.h" #include "btstack_memory.h"

View File

@ -38,4 +38,4 @@ endif
# no BLE here # no BLE here
EXAMPLES:= $(filter-out ${EXAMPLES_USING_LE},$(EXAMPLES)) EXAMPLES:= $(filter-out ${EXAMPLES_USING_LE},$(EXAMPLES))
all: ${BTSTACK_ROOT}/include/btstack/version.h ${EXAMPLES} all: ${BTSTACK_ROOT}/src/version.h ${EXAMPLES}

View File

@ -49,7 +49,7 @@
#include "btstack-config.h" #include "btstack-config.h"
#include <btstack/run_loop.h> #include "run_loop.h"
#include "debug.h" #include "debug.h"
#include "btstack_memory.h" #include "btstack_memory.h"

View File

@ -37,4 +37,4 @@ EXAMPLES += ${EXAMPLES_CLI}
CFLAGS += -I${POSIX_ROOT}/src CFLAGS += -I${POSIX_ROOT}/src
endif endif
all: ${BTSTACK_ROOT}/include/btstack/version.h ${EXAMPLES} all: ${BTSTACK_ROOT}/src/version.h ${EXAMPLES}

View File

@ -49,7 +49,7 @@
#include "btstack-config.h" #include "btstack-config.h"
#include <btstack/run_loop.h> #include "run_loop.h"
#include "debug.h" #include "debug.h"
#include "btstack_memory.h" #include "btstack_memory.h"

View File

@ -43,7 +43,7 @@
#include "remote_device_db.h" #include "remote_device_db.h"
#include "debug.h" #include "debug.h"
#include <btstack/utils.h> #include "utils.h"
#define LINK_KEY_PATH "/tmp/" #define LINK_KEY_PATH "/tmp/"
#define LINK_KEY_PREFIX "btstack_link_key_" #define LINK_KEY_PREFIX "btstack_link_key_"

View File

@ -41,8 +41,8 @@
* Created by Matthias Ringwald on 6/6/09. * Created by Matthias Ringwald on 6/6/09.
*/ */
#include <btstack/run_loop.h> #include "run_loop.h"
#include <btstack/linked_list.h> #include "linked_list.h"
#include "debug.h" #include "debug.h"
#include "run_loop_private.h" #include "run_loop_private.h"

View File

@ -37,7 +37,7 @@
#include <errno.h> #include <errno.h>
#include <stdio.h> #include <stdio.h>
#include <btstack/run_loop.h> #include "run_loop.h"
#include <stdlib.h> #include <stdlib.h>
#include "stdin_support.h" #include "stdin_support.h"

View File

@ -38,7 +38,7 @@
#ifndef __STDIN_SUPPORT_H #ifndef __STDIN_SUPPORT_H
#define __STDIN_SUPPORT_H #define __STDIN_SUPPORT_H
#include <btstack/run_loop.h> #include "run_loop.h"
#if defined __cplusplus #if defined __cplusplus
extern "C" { extern "C" {

View File

@ -48,7 +48,7 @@
#include <errno.h> #include <errno.h>
#include <unistd.h> #include <unistd.h>
#include <btstack/run_loop.h> #include "run_loop.h"
#include "hci.h" #include "hci.h"
#include "bt_control_cc256x.h" #include "bt_control_cc256x.h"
#include "btstack_memory.h" #include "btstack_memory.h"
@ -80,7 +80,7 @@ void btstack_main(void);
static void bluetooth_power_cycle(void); static void bluetooth_power_cycle(void);
// hal_tick.h inmplementation // hal_tick.h inmplementation
#include <btstack/hal_tick.h> #include "hal_tick.h"
static void dummy_handler(void); static void dummy_handler(void);
static void (*tick_handler)(void) = &dummy_handler; static void (*tick_handler)(void) = &dummy_handler;
@ -117,7 +117,7 @@ static void msleep(uint32_t delay) {
} }
// hal_led.h implementation // hal_led.h implementation
#include <btstack/hal_led.h> #include "hal_led.h"
void hal_led_off(void); void hal_led_off(void);
void hal_led_on(void); void hal_led_on(void);
@ -132,7 +132,7 @@ void hal_led_toggle(void){
} }
// hal_cpu.h implementation // hal_cpu.h implementation
#include <btstack/hal_cpu.h> #include "hal_cpu.h"
void hal_cpu_disable_irqs(void){ void hal_cpu_disable_irqs(void){
__disable_irq(); __disable_irq();
@ -152,7 +152,7 @@ void hal_cpu_enable_irqs_and_sleep(void){
} }
// hal_uart_dma.c implementation // hal_uart_dma.c implementation
#include <btstack/hal_uart_dma.h> #include "hal_uart_dma.h"
// handlers // handlers
static void (*rx_done_handler)(void) = dummy_handler; static void (*rx_done_handler)(void) = dummy_handler;

View File

@ -39,7 +39,7 @@
#define __ANT_CMDS_H #define __ANT_CMDS_H
#include <stdint.h> #include <stdint.h>
#include <btstack/hci_cmds.h> #include "hci_cmds.h"
#if defined __cplusplus #if defined __cplusplus
extern "C" { extern "C" {

View File

@ -46,10 +46,10 @@
#include <string.h> // memcpy #include <string.h> // memcpy
#include <stdint.h> #include <stdint.h>
#include <btstack/btstack.h> #include "btstack.h"
#include <btstack/hci_cmds.h> #include "hci_cmds.h"
#include <btstack/utils.h> #include "utils.h"
#include <btstack/sdp_util.h> #include "sdp_util.h"
#include "btstack_memory.h" #include "btstack_memory.h"
#include "hci.h" #include "hci.h"

View File

@ -44,8 +44,7 @@
#ifndef __BNEP_H #ifndef __BNEP_H
#define __BNEP_H #define __BNEP_H
#include <btstack/btstack.h> #include "utils.h"
#include <btstack/utils.h>
#include <stdint.h> #include <stdint.h>

View File

@ -48,7 +48,7 @@
#define __BT_CONTROL_H #define __BT_CONTROL_H
#include <stdint.h> #include <stdint.h>
#include <btstack/utils.h> #include "utils.h"
#if defined __cplusplus #if defined __cplusplus
extern "C" { extern "C" {

View File

@ -47,9 +47,9 @@
#ifndef __BTSTACK_H #ifndef __BTSTACK_H
#define __BTSTACK_H #define __BTSTACK_H
#include <btstack/hci_cmds.h> #include "hci_cmds.h"
#include <btstack/run_loop.h> #include "run_loop.h"
#include <btstack/utils.h> #include "utils.h"
#include "btstack-config.h" #include "btstack-config.h"

Some files were not shown because too many files have changed in this diff Show More