ext: Integrate Nordic SDK HAL files into Zephyr

Nordic Semiconductor's Software Development Kit's HAL layer
provides a set of low-level header and sourcefiles that give access
to the different hardware peripherals of Nordic ICs.

This patch includes the new files in the build and refactors the Kconfig
and Kbuild files in ext/hal/nordic to acommodate for the presence of the
new HAL layer.

Change-Id: Ie8e1a4c9fcc7e9058a9d16a2692ef1789603aa53
Signed-off-by: Wojciech Bober <wojciech.bober@nordicsemi.no>
Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
This commit is contained in:
Carles Cufi 2017-01-27 13:12:25 +01:00
commit 17f7b4ed95
8 changed files with 13 additions and 3 deletions

View file

@ -17,5 +17,6 @@ config SOC_SERIES_NRF51X
select XIP
select HAS_CMSIS
select HAS_NORDIC_MDK
select HAS_NORDIC_HAL
help
Enable support for NRF51 MCU series

View file

@ -18,5 +18,6 @@ config SOC_SERIES_NRF52X
select XIP
select HAS_CMSIS
select HAS_NORDIC_MDK
select HAS_NORDIC_HAL
help
Enable support for NRF52 MCU series

View file

@ -2,3 +2,4 @@ obj-$(CONFIG_HAS_MCUX) += nxp/mcux/
obj-$(CONFIG_QMSI_BUILTIN) += qmsi/
obj-$(CONFIG_HAS_STM32CUBE) += st/stm32cube/
obj-$(CONFIG_HAS_CC3200SDK) += ti/cc3200sdk/
obj-$(CONFIG_HAS_NORDIC_HAL) += nordic/

View file

@ -12,7 +12,7 @@ menu "HALs"
source "ext/hal/cmsis/Kconfig"
source "ext/hal/nordic/mdk/Kconfig"
source "ext/hal/nordic/Kconfig"
source "ext/hal/nxp/mcux/Kconfig"

View file

@ -2,7 +2,7 @@
include $(srctree)/ext/hal/cmsis/Makefile
include $(srctree)/ext/hal/nordic/mdk/Makefile
include $(srctree)/ext/hal/nordic/Makefile
include $(srctree)/ext/hal/nxp/mcux/Makefile

1
ext/hal/nordic/Kbuild Normal file
View file

@ -0,0 +1 @@
obj-$(CONFIG_HAS_NORDIC_HAL) += hal/nrf_adc.o hal/nrf_ecb.o hal/nrf_nvmc.o hal/nrf_saadc.o

View file

@ -6,3 +6,6 @@
config HAS_NORDIC_MDK
bool
config HAS_NORDIC_HAL
bool

View file

@ -1,4 +1,7 @@
ifdef CONFIG_HAS_NORDIC_MDK
ZEPHYRINCLUDE += -I$(srctree)/ext/hal/nordic/mdk
endif
ifdef CONFIG_HAS_NORDIC_HAL
ZEPHYRINCLUDE += -I$(srctree)/ext/hal/nordic/hal
endif