Commit b6c32b1b authored by Andreas Werner's avatar Andreas Werner
Browse files

add Cortex-M0Plus support

parent 97ec262e
......@@ -5,6 +5,10 @@ choice
bool "ARM Cortex-M0"
help
ARM Cortex-M0
config ARCH_ARM_CORTEX_M0PLUS
bool "ARM Cortex-M0+"
help
ARM Cortex-M0+
config ARCH_ARM_CORTEX_M3
bool "ARM Cortex-M3/M4"
help
......@@ -14,7 +18,7 @@ choice
help
ARM Cortex-M4F
endchoice
if ARCH_ARM_CORTEX_M0=y
if ARCH_ARM_CORTEX_M0=y || ARCH_ARM_CORTEX_M0PLUS
source arch/arm/cortex-m0/Kconfig
endif
if ARCH_ARM_CORTEX_M3=y
......
obj-$(CONFIG_ARCH_ARM_CORTEX_M0)+=cortex-m0/
obj-$(CONFIG_ARCH_ARM_CORTEX_M0PLUS)+=cortex-m0/
obj-$(CONFIG_ARCH_ARM_CORTEX_M3)+=cortex-m3/
obj-$(CONFIG_ARCH_ARM_CORTEX_M4F)+=cortex-m4f/
obj-$(CONFIG_MACH_HAS_NVIC)+=nvic/
......@@ -2,6 +2,8 @@ comment "Cortex-M0 Settings"
config ARCH_INCLUDE
string
default "-Iarch/arm/cortex-m0 -Iarch/arm/include"
if ARCH_ARM_CORTEX_M0=y
config ARCH_CFLAGS
string
default "-mthumb -mcpu=cortex-m0 -march=armv6-m -mtune=cortex-m0"
......@@ -11,3 +13,15 @@ config ARCH_AFLAGS
config ARCH_LDFLAGS
string
default ""
endif
if ARCH_ARM_CORTEX_M0PLUS=y
config ARCH_CFLAGS
string
default "-mthumb -mcpu=cortex-m0plus -march=armv6-m -mtune=cortex-m0plus"
config ARCH_AFLAGS
string
default "-mthumb -mcpu=cortex-m0plus -march=armv6-m -mtune=cortex-m0plus"
config ARCH_LDFLAGS
string
default ""
endif
This diff is collapsed.
......@@ -25,6 +25,8 @@
#include <vector.h>
#if defined CONFIG_ARCH_ARM_CORTEX_M0
# include <core_cm0.h>
#elif defined CONFIG_ARCH_ARM_CORTEX_M0PLUS
# include <core_cm0plus.h>
#elif defined CONFIG_ARCH_ARM_CORTEX_M3
# include <core_cm3.h>
#elif defined CONFIG_ARCH_ARM_CORTEX_M4F
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment