Skip to content

Commit

Permalink
Fix softdevices include issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jocelyn committed Jan 26, 2016
1 parent 4667c46 commit a1cfefd
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions sdk/sdk.mk
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ CPFLAGS += -DUSE_DRV_PPI
endif
ifeq ($(USE_DRV_PSTORAGE), y)
INCLUDES += $(SDK_DIRECTORY)/drivers_nrf/pstorage
SRC += $(shell find $(SDK_DIRECTORY)/drivers_nrf/pstorage -name *.c)
SRC += $(SDK_DIRECTORY)/drivers_nrf/pstorage/pstorage.c
CPFLAGS += -DUSE_DRV_PSTORAGE
endif
ifeq ($(USE_DRV_QDEC), y)
Expand Down Expand Up @@ -184,7 +184,7 @@ CPFLAGS += -DUSE_LIB_SIMPLE_TIMER
endif
ifeq ($(USE_LIB_TIMER), y)
INCLUDES += $(SDK_DIRECTORY)/libraries/timer
SRC += $(shell find $(SDK_DIRECTORY)/libraries/timer -name *.c)
SRC += $(SDK_DIRECTORY)/libraries/timer/app_timer.c
CPFLAGS += -DUSE_LIB_TIMER
endif
ifeq ($(USE_LIB_TRACE), y)
Expand All @@ -198,6 +198,18 @@ SRC += $(shell find $(SDK_DIRECTORY)/libraries/uart -name *.c)
CPFLAGS += -DUSE_LIB_UART
endif

ifeq ($(USE_BLE_ADV), y)
INCLUDES += $(SDK_DIRECTORY)/ble/ble_advertising
SRC += $(shell find $(SDK_DIRECTORY)/ble/ble_advertising -name *.c)
CPFLAGS += -DUSE_BLE_ADV
endif

ifeq ($(USE_BLE_COMMON), y)
INCLUDES += $(SDK_DIRECTORY)/ble/common
SRC += $(shell find $(SDK_DIRECTORY)/ble/common -name *.c)
CPFLAGS += -DUSE_BLE_COMMON
endif

INCLUDES += $(SDK_DIRECTORY)/libraries/util
SRC += $(shell find $(SDK_DIRECTORY)/libraries/util -name *.c)

Expand Down

0 comments on commit a1cfefd

Please sign in to comment.