2016-12-13 14:27:26 -05:00
|
|
|
|
|
|
|
SDK_MODULES ?=
|
|
|
|
|
|
|
|
ifeq ($(SD), s1xx)
|
|
|
|
SDK_MODULES = iot_0.9.0
|
|
|
|
else ifeq ($(SD), s110)
|
|
|
|
SDK_MODULES = sdk_10.0.0
|
|
|
|
else ifeq ($(SD), s120)
|
|
|
|
SDK_MODULES = sdk_10.0.0
|
|
|
|
$(error No supported BLE wrapper)
|
|
|
|
else ifeq ($(SD), s130)
|
|
|
|
SDK_MODULES = sdk_10.0.0
|
|
|
|
else ifeq ($(SD), s132)
|
|
|
|
SDK_MODULES = sdk_12.1.0
|
2017-02-12 18:16:45 -05:00
|
|
|
SDK_COMPONENTS = 0
|
2016-12-13 14:27:26 -05:00
|
|
|
else
|
|
|
|
$(error No SDK configured for this SD)
|
|
|
|
endif
|
|
|
|
|
|
|
|
SDK_MODULES_PATH = sdk/$(SDK_MODULES)/
|
|
|
|
|
|
|
|
include $(SDK_MODULES_PATH)sdk.mk
|
|
|
|
|
|
|
|
INC += -I./sdk
|
|
|
|
|
|
|
|
SRC_C += \
|
|
|
|
sdk/modble.c \
|
2017-02-28 17:30:36 -05:00
|
|
|
sdk/ble_drv.c \
|
|
|
|
sdk/ble_uart.c
|