arm: cmsis: Introduce CMSIS layer
Support using CMSIS defines and functions, we either pull the expect defines/enum from the SoC HAL layers via <soc.h> for the SoC or we provide a default set based on __NVIC_PRIO_BITS is defined. We provide defaults in the case for: IRQn_Type enum *_REV define (set to 0) __MPU_PRESENT define (set to 0 - no MPU) __NVIC_PRIO_BITS define (set to CONFIG_NUM_IRQ_PRIO_BITS) __Vendor_SysTickConfig (set to 0 - standard SysTick) Jira: ZEP-1568 Change-Id: Ibc203de79f4697b14849b69c0e8c5c43677b5c6e Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no> Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
375a0ef393
commit
457a5988c4
4 changed files with 83 additions and 0 deletions
|
@ -19,6 +19,7 @@ config CPU_CORTEX_M
|
|||
default n
|
||||
select CPU_CORTEX
|
||||
select ARCH_HAS_CUSTOM_SWAP_TO_MAIN
|
||||
select HAS_CMSIS
|
||||
help
|
||||
This option signifies the use of a CPU of the Cortex-M family.
|
||||
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
ccflags-y +=-I$(srctree)/include/drivers
|
||||
ccflags-y +=-I$(srctree)/arch/arm/soc/$(SOC_PATH)
|
||||
ccflags-y +=-I$(srctree)/kernel/include
|
||||
ccflags-y +=-I$(srctree)/include/
|
||||
|
||||
asflags-y = $(ccflags-y)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue