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:
parent
ed9ffc3a99
commit
17f7b4ed95
8 changed files with 13 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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/
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
|
@ -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
1
ext/hal/nordic/Kbuild
Normal 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
|
|
@ -6,3 +6,6 @@
|
|||
|
||||
config HAS_NORDIC_MDK
|
||||
bool
|
||||
|
||||
config HAS_NORDIC_HAL
|
||||
bool
|
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue