From b4aff7dc799f708a3d76338448f5445cc20572c1 Mon Sep 17 00:00:00 2001 From: Carles Cufi Date: Tue, 14 Mar 2017 15:44:31 +0100 Subject: [PATCH] arch: nrf5x: Define additional compiler macros The current nordic hal layer in ext/ requires additional macros to include the correct files. This will be corrected in an upcoming version of the hal layer itself but for now add the required macros so that users can benefit from the hal peripheral code. Change-Id: I95127d0a98d7e882fdc779f961718fa223d504eb Signed-off-by: Carles Cufi --- arch/arm/soc/nordic_nrf5/nrf51/Makefile | 1 + arch/arm/soc/nordic_nrf5/nrf52/Makefile | 1 + 2 files changed, 2 insertions(+) diff --git a/arch/arm/soc/nordic_nrf5/nrf51/Makefile b/arch/arm/soc/nordic_nrf5/nrf51/Makefile index b1149643830..ed60c601573 100644 --- a/arch/arm/soc/nordic_nrf5/nrf51/Makefile +++ b/arch/arm/soc/nordic_nrf5/nrf51/Makefile @@ -2,6 +2,7 @@ ZEPHYRINCLUDE += -I$(srctree)/arch/arm/soc/nordic_nrf5/include ifdef CONFIG_SOC_SERIES_NRF51X soc-cflags += -DNRF51 +soc-cflags += -DNRF51822 endif obj-y += soc.o diff --git a/arch/arm/soc/nordic_nrf5/nrf52/Makefile b/arch/arm/soc/nordic_nrf5/nrf52/Makefile index d97e44629fb..5ca1d7c5573 100644 --- a/arch/arm/soc/nordic_nrf5/nrf52/Makefile +++ b/arch/arm/soc/nordic_nrf5/nrf52/Makefile @@ -2,6 +2,7 @@ ZEPHYRINCLUDE += -I$(srctree)/arch/arm/soc/nordic_nrf5/include ifdef CONFIG_SOC_NRF52832 soc-cflags += -DNRF52832_XXAA +soc-cflags += -DNRF52832 endif ifdef CONFIG_SOC_NRF52840