arch/arm: add initial support for Cortex-M0/M0+
Not disabling SysTick as it is optional by the spec. SVC not used as there is no priority-based interrupt masking (only PendSV is used). Largely based on a previous work done by Euan Mutch <euan@abelon.com>. Jira: ZEP-783 Change-Id: I38e29bfcf0624c1aea5f9fd7a74230faa1b59e8b Signed-off-by: Ricardo Salveti <ricardo.salveti@linaro.org>
This commit is contained in:
parent
6249c567f5
commit
ffacae20d0
18 changed files with 325 additions and 84 deletions
|
@ -27,6 +27,14 @@ endif
|
|||
cflags-cortex-m7 = $(call cc-option,-mabi=aapcs -mthumb -mcpu=cortex-m7) \
|
||||
$(call cc-option,-mthumb -march=armv7e-m)
|
||||
|
||||
aflags-$(CONFIG_CPU_CORTEX_M0) += $(cflags-cortex-m0)
|
||||
cflags-$(CONFIG_CPU_CORTEX_M0) += $(cflags-cortex-m0)
|
||||
cxxflags-$(CONFIG_CPU_CORTEX_M0) += $(cflags-cortex-m0)
|
||||
|
||||
aflags-$(CONFIG_CPU_CORTEX_M0PLUS) += $(cflags-cortex-m0+)
|
||||
cflags-$(CONFIG_CPU_CORTEX_M0PLUS) += $(cflags-cortex-m0+)
|
||||
cxxflags-$(CONFIG_CPU_CORTEX_M0PLUS) += $(cflags-cortex-m0+)
|
||||
|
||||
aflags-$(CONFIG_CPU_CORTEX_M3) += $(cflags-cortex-m3)
|
||||
cflags-$(CONFIG_CPU_CORTEX_M3) += $(cflags-cortex-m3)
|
||||
cxxflags-$(CONFIG_CPU_CORTEX_M3) += $(cflags-cortex-m3)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue