Skip to content

Commit 351ad18

Browse files
committed
ARM MPS2 target support for the build system.
1 parent 7fdc827 commit 351ad18

File tree

1 file changed

+50
-3
lines changed

1 file changed

+50
-3
lines changed

workspace_tools/targets.py

Lines changed: 50 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -701,6 +701,7 @@ def __init__(self):
701701
self.default_toolchain = "uARM"
702702
self.supported_form_factors = ["ARDUINO"]
703703

704+
704705
### Nordic ###
705706

706707
class NRF51822(Target):
@@ -872,14 +873,54 @@ def __init__(self):
872873

873874
### ARM ###
874875

875-
class ARM_MPS2(Target):
876+
class ARM_MPS2_M0(Target):
877+
def __init__(self):
878+
Target.__init__(self)
879+
self.core = "Cortex-M0"
880+
self.extra_labels = ['ARM_SSG', 'MPS2_M0']
881+
self.macros = ['CMSDK_CM0']
882+
self.supported_toolchains = ["ARM", "GCC_ARM"]
883+
self.default_toolchain = "ARM"
884+
885+
class ARM_MPS2_M0P(Target):
886+
def __init__(self):
887+
Target.__init__(self)
888+
self.core = "Cortex-M0+"
889+
self.extra_labels = ['ARM_SSG', 'MPS2_M0P']
890+
self.macros = ['CMSDK_CM0plus']
891+
self.supported_toolchains = ["ARM", "GCC_ARM"]
892+
self.default_toolchain = "ARM"
893+
894+
class ARM_MPS2_M3(Target):
895+
def __init__(self):
896+
Target.__init__(self)
897+
self.core = "Cortex-M3"
898+
self.extra_labels = ['ARM_SSG', 'MPS2_M3']
899+
self.macros = ['CMSDK_CM3']
900+
self.supported_toolchains = ["ARM", "GCC_ARM"]
901+
self.default_toolchain = "ARM"
902+
903+
class ARM_MPS2_M4(Target):
876904
def __init__(self):
877905
Target.__init__(self)
878906
self.core = "Cortex-M4F"
907+
self.extra_labels = ['ARM_SSG', 'MPS2_M4']
879908
self.macros = ['CMSDK_CM4']
880909
self.supported_toolchains = ["ARM", "GCC_ARM"]
881910
self.default_toolchain = "ARM"
882911

912+
class ARM_MPS2_M7(Target):
913+
def __init__(self):
914+
Target.__init__(self)
915+
self.core = "Cortex-M7F"
916+
self.extra_labels = ['ARM_SSG', 'MPS2_M7']
917+
self.macros = ['CMSDK_CM7']
918+
self.supported_toolchains = ["ARM", "GCC_ARM"]
919+
self.default_toolchain = "ARM"
920+
921+
class ARM_MPS2(ARM_MPS2_M4):
922+
pass
923+
883924

884925
### Renesas ###
885926

@@ -985,10 +1026,16 @@ def program_cycle_s(self):
9851026
RBLAB_BLENANO(),# nRF51822
9861027
NRF51822_Y5_MBUG(),#nRF51822
9871028
WALLBOT_BLE(), # nRF51822
988-
DELTA_DFCM_NNN40(), # nRF51822
989-
DELTA_DFCM_NNN40_OTA(), # nRF51822
1029+
DELTA_DFCM_NNN40(), # nRF51822
1030+
DELTA_DFCM_NNN40_OTA(), # nRF51822
9901031

9911032
### ARM ###
1033+
ARM_MPS2_M0(),
1034+
ARM_MPS2_M0P(),
1035+
ARM_MPS2_M1(),
1036+
ARM_MPS2_M3(),
1037+
ARM_MPS2_M4(),
1038+
ARM_MPS2_M7(),
9921039
ARM_MPS2(),
9931040

9941041
### Renesas ###

0 commit comments

Comments
 (0)