From 18f528eceb2866560423450954f847e40fe16054 Mon Sep 17 00:00:00 2001 From: Glenn Ruben Bakke Date: Sat, 17 Dec 2016 01:16:38 +0100 Subject: [PATCH] nrf5: Only enable hal_pwm.c if nrf52 target as nrf51 must have a sw implementation. --- nrf5/Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nrf5/Makefile b/nrf5/Makefile index fa5b262acc..439c8d32bc 100644 --- a/nrf5/Makefile +++ b/nrf5/Makefile @@ -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 \