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 <carles.cufi@nordicsemi.no>
This commit is contained in:
parent
3dc9af66ca
commit
b4aff7dc79
2 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue