2016-12-13 14:27:26 -05:00
|
|
|
|
2017-03-04 11:52:20 -05:00
|
|
|
SOFTDEV_HEX_NAME ?=
|
2016-12-13 14:27:26 -05:00
|
|
|
|
2017-03-04 11:52:20 -05:00
|
|
|
ifeq ($(SD), s110)
|
|
|
|
INC += -I$(SDK_ROOT)components/softdevice/$(SD)/headers
|
|
|
|
CFLAGS += -DBLUETOOTH_SD_DEBUG=1
|
|
|
|
CFLAGS += -DBLUETOOTH_SD=110
|
|
|
|
SOFTDEV_HEX_NAME = s110_nrf51_8.0.0_softdevice.hex
|
2016-12-13 14:27:26 -05:00
|
|
|
else ifeq ($(SD), s120)
|
2017-03-04 11:52:20 -05:00
|
|
|
$(error No BLE wrapper available yet)
|
2016-12-13 14:27:26 -05:00
|
|
|
else ifeq ($(SD), s130)
|
2017-03-04 11:52:20 -05:00
|
|
|
$(error No BLE wrapper available yet)
|
2016-12-13 14:27:26 -05:00
|
|
|
else ifeq ($(SD), s132)
|
2017-03-04 11:52:20 -05:00
|
|
|
INC += -I$(SDK_ROOT)components/softdevice/$(SD)/headers
|
|
|
|
INC += -I$(SDK_ROOT)components/softdevice/$(SD)/headers/$(MCU_VARIANT)
|
|
|
|
CFLAGS += -DBLUETOOTH_SD_DEBUG=1
|
|
|
|
CFLAGS += -DBLUETOOTH_SD=132
|
|
|
|
SOFTDEV_HEX_NAME = s132_nrf52_3.0.0_softdevice.hex
|
|
|
|
#else ifeq ($(SD), s1xx)
|
|
|
|
# include sdk/iot_0.9.0/sdk.mk
|
2016-12-13 14:27:26 -05:00
|
|
|
else
|
2017-03-04 11:52:20 -05:00
|
|
|
$(error Incorrect softdevice set flag)
|
2016-12-13 14:27:26 -05:00
|
|
|
endif
|
|
|
|
|
2017-03-04 11:52:20 -05:00
|
|
|
SOFTDEV_HEX = $(lastword $(wildcard $(SDK_ROOT)/components/softdevice/$(SD)/hex/$(SOFTDEV_HEX_NAME)))
|
2016-12-13 14:27:26 -05:00
|
|
|
|
|
|
|
INC += -I./sdk
|
|
|
|
|
|
|
|
SRC_C += \
|
|
|
|
sdk/modble.c \
|
2017-02-28 17:30:36 -05:00
|
|
|
sdk/ble_drv.c \
|
|
|
|
sdk/ble_uart.c
|