nrf5: Only enable hal_pwm.c if nrf52 target as nrf51 must have a sw implementation.

This commit is contained in:
Glenn Ruben Bakke 2016-12-17 01:16:38 +01:00
parent 3bf2ca05f1
commit 18f528eceb
1 changed files with 5 additions and 0 deletions

View File

@ -114,8 +114,13 @@ SRC_HAL = $(addprefix hal/,\
hal_spi.c \
hal_spie.c \
hal_time.c \
)
ifeq ($(MCU_VARIANT), nrf52)
SRC_HAL += $(addprefix hal/,\
hal_pwm.c \
)
endif
SRC_C += \
main.c \