mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-27 23:37:25 +00:00
fix msp430 ports
This commit is contained in:
parent
bef9a6fc8a
commit
726a19abef
@ -49,16 +49,7 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "hci_cmd.h"
|
#include "btstack.h"
|
||||||
#include "btstack_run_loop.h"
|
|
||||||
#include "classic/sdp_util.h"
|
|
||||||
|
|
||||||
#include "hci.h"
|
|
||||||
#include "l2cap.h"
|
|
||||||
#include "btstack_memory.h"
|
|
||||||
#include "classic/rfcomm.h"
|
|
||||||
#include "classic/sdp_server.h"
|
|
||||||
#include "btstack_config.h"
|
|
||||||
|
|
||||||
#define HEARTBEAT_PERIOD_MS 500
|
#define HEARTBEAT_PERIOD_MS 500
|
||||||
|
|
||||||
@ -92,7 +83,7 @@ static void spp_service_setup(void){
|
|||||||
// init RFCOMM
|
// init RFCOMM
|
||||||
rfcomm_init();
|
rfcomm_init();
|
||||||
// reserved channel, mtu limited by l2cap, 1 credit
|
// reserved channel, mtu limited by l2cap, 1 credit
|
||||||
rfcomm_register_service_with_initial_credits(rfcomm_channel_nr, 0xffff, 1);
|
rfcomm_register_service_with_initial_credits(&packet_handler, rfcomm_channel_nr, 0xffff, 1);
|
||||||
|
|
||||||
// init SDP, create record for SPP and register with SDP
|
// init SDP, create record for SPP and register with SDP
|
||||||
sdp_init();
|
sdp_init();
|
||||||
|
@ -38,7 +38,7 @@ CORE = \
|
|||||||
btstack_memory.c \
|
btstack_memory.c \
|
||||||
btstack_memory_pool.c \
|
btstack_memory_pool.c \
|
||||||
btstack_run_loop_embedded.c \
|
btstack_run_loop_embedded.c \
|
||||||
btstak_run_loop.c \
|
btstack_run_loop.c \
|
||||||
hal_board.c \
|
hal_board.c \
|
||||||
hal_compat.c \
|
hal_compat.c \
|
||||||
hal_cpu.c \
|
hal_cpu.c \
|
||||||
|
@ -65,19 +65,7 @@
|
|||||||
#include "hal_usb.h"
|
#include "hal_usb.h"
|
||||||
#include "UserExperienceGraphics.h"
|
#include "UserExperienceGraphics.h"
|
||||||
|
|
||||||
#include "btstack_run_loop.h"
|
#include "btstack.h"
|
||||||
|
|
||||||
#include "btstack_memory.h"
|
|
||||||
#include "btstack_chipset_cc256x.h"
|
|
||||||
#include "gap.h"
|
|
||||||
#include "hci.h"
|
|
||||||
#include "hci_dump.h"
|
|
||||||
#include "l2cap.h"
|
|
||||||
|
|
||||||
#include "ble/sm.h"
|
|
||||||
#include "ble/att_db.h"
|
|
||||||
#include "ble/att_server.h"
|
|
||||||
#include "ble/le_device_db.h"
|
|
||||||
|
|
||||||
#define FONT_HEIGHT 12 // Each character has 13 lines
|
#define FONT_HEIGHT 12 // Each character has 13 lines
|
||||||
#define FONT_WIDTH 8
|
#define FONT_WIDTH 8
|
||||||
|
@ -36,6 +36,7 @@ CFLAGS += \
|
|||||||
LDFLAGS = -mmcu=${MCU}
|
LDFLAGS = -mmcu=${MCU}
|
||||||
|
|
||||||
CORE = \
|
CORE = \
|
||||||
|
btstack_linked_list.c \
|
||||||
btstack_memory.c \
|
btstack_memory.c \
|
||||||
btstack_memory_pool.c \
|
btstack_memory_pool.c \
|
||||||
btstack_run_loop.c \
|
btstack_run_loop.c \
|
||||||
@ -47,7 +48,6 @@ CORE = \
|
|||||||
hal_tick.c \
|
hal_tick.c \
|
||||||
hal_usb.c \
|
hal_usb.c \
|
||||||
hci_dump.c \
|
hci_dump.c \
|
||||||
linked_list.c \
|
|
||||||
main.c \
|
main.c \
|
||||||
btstack_util.c \
|
btstack_util.c \
|
||||||
|
|
||||||
@ -114,19 +114,19 @@ include ${BTSTACK_ROOT}/chipset/cc256x/Makefile.inc
|
|||||||
led_counter.out: ${CORE_OBJ} ${COMMON_OBJ} ${CC2560B} led_counter.o
|
led_counter.out: ${CORE_OBJ} ${COMMON_OBJ} ${CC2560B} led_counter.o
|
||||||
${CC} $^ ${LDFLAGS} -o $@
|
${CC} $^ ${LDFLAGS} -o $@
|
||||||
|
|
||||||
ant-test.out: ${CORE_OBJ} ${COMMON_OBJ} ${SPP_OBJ} profile.h sdp.o ant_cmds.o ${CC2567} ant-test.o
|
ant-test.out: ${CORE_OBJ} ${COMMON_OBJ} ${SPP_OBJ} profile.h ant_cmds.o ${CC2567} ant-test.o
|
||||||
${CC} $^ ${LDFLAGS} -o $@
|
${CC} $^ ${LDFLAGS} -o $@
|
||||||
|
|
||||||
ble_server.out: ${CORE_OBJ} ${COMMON_OBJ} ${BLE_OBJ} profile.h ble_server.o
|
ble_server.out: ${CORE_OBJ} ${COMMON_OBJ} ${BLE_OBJ} profile.h ble_server.o
|
||||||
${CC} $^ ${LDFLAGS} -o $@
|
${CC} $^ ${LDFLAGS} -o $@
|
||||||
|
|
||||||
spp_and_le_counter.out: ${CORE_OBJ} ${COMMON_OBJ} ${SPP_OBJ} ${BLE_OBJ} spp_and_le_counter.h spp_and_le_counter.o sdp.o
|
spp_and_le_counter.out: ${CORE_OBJ} ${COMMON_OBJ} ${SPP_OBJ} ${BLE_OBJ} spp_and_le_counter.h spp_and_le_counter.o sdp_server.o
|
||||||
${CC} $^ ${LDFLAGS} -o $@
|
${CC} $^ ${LDFLAGS} -o $@
|
||||||
|
|
||||||
spp_counter.out: ${CORE_OBJ} ${COMMON_OBJ} ${SPP_OBJ} ${CC2560B} spp_counter.o sdp.o
|
spp_counter.out: ${CORE_OBJ} ${COMMON_OBJ} ${SPP_OBJ} ${CC2560B} spp_counter.o sdp_server.o
|
||||||
${CC} $^ ${LDFLAGS} -o $@
|
${CC} $^ ${LDFLAGS} -o $@
|
||||||
|
|
||||||
spp_flowcontrol.out: ${CORE_OBJ} ${COMMON_OBJ} ${SPP_OBJ} ${CC2560B} spp_flowcontrol.o sdp.o
|
spp_flowcontrol.out: ${CORE_OBJ} ${COMMON_OBJ} ${SPP_OBJ} ${CC2560B} spp_flowcontrol.o sdp_server.o
|
||||||
${CC} $^ ${LDFLAGS} -o $@
|
${CC} $^ ${LDFLAGS} -o $@
|
||||||
|
|
||||||
gap_inquiry.out: ${CORE_OBJ} ${COMMON_OBJ} ${SPP_OBJ} ${CC2560B} gap_inquiry.o
|
gap_inquiry.out: ${CORE_OBJ} ${COMMON_OBJ} ${SPP_OBJ} ${CC2560B} gap_inquiry.o
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
#define MAX_NO_HCI_CONNECTIONS MAX_SPP_CONNECTIONS
|
#define MAX_NO_HCI_CONNECTIONS MAX_SPP_CONNECTIONS
|
||||||
#define MAX_NO_GATT_CLIENTS 0
|
#define MAX_NO_GATT_CLIENTS 0
|
||||||
#define MAX_NO_GATT_SUBCLIENTS 0
|
#define MAX_NO_GATT_SUBCLIENTS 0
|
||||||
|
#define MAX_NO_HFP_CONNECTIONS 0
|
||||||
#define MAX_NO_L2CAP_SERVICES 2
|
#define MAX_NO_L2CAP_SERVICES 2
|
||||||
#define MAX_NO_L2CAP_CHANNELS (1+MAX_SPP_CONNECTIONS)
|
#define MAX_NO_L2CAP_CHANNELS (1+MAX_SPP_CONNECTIONS)
|
||||||
#define MAX_NO_RFCOMM_MULTIPLEXERS MAX_SPP_CONNECTIONS
|
#define MAX_NO_RFCOMM_MULTIPLEXERS MAX_SPP_CONNECTIONS
|
||||||
|
@ -63,19 +63,8 @@
|
|||||||
#include "hal_usb.h"
|
#include "hal_usb.h"
|
||||||
#include "hal_usb.h"
|
#include "hal_usb.h"
|
||||||
|
|
||||||
#include "btstack_run_loop.h"
|
#include "btstack.h"
|
||||||
|
|
||||||
#include "btstack_memory.h"
|
|
||||||
#include "btstack_chipset_cc256x.h"
|
|
||||||
#include "hci.h"
|
|
||||||
#include "hci_dump.h"
|
|
||||||
#include "l2cap.h"
|
|
||||||
|
|
||||||
#include "ble/sm.h"
|
|
||||||
#include "ble/att_db.h"
|
|
||||||
#include "ble/att_server.h"
|
|
||||||
#include "gap.h"
|
|
||||||
#include "ble/le_device_db.h"
|
|
||||||
|
|
||||||
#define FONT_HEIGHT 12 // Each character has 13 lines
|
#define FONT_HEIGHT 12 // Each character has 13 lines
|
||||||
#define FONT_WIDTH 8
|
#define FONT_WIDTH 8
|
||||||
|
Loading…
x
Reference in New Issue
Block a user