@@ -28,179 +28,184 @@ class Target:
28
28
def __init__ (self ):
29
29
# ARM Core
30
30
self .core = None
31
-
31
+
32
32
# Is the disk provided by the interface chip of this board virtual?
33
33
self .is_disk_virtual = False
34
-
34
+
35
35
# list of toolchains that are supported by the mbed SDK for this target
36
36
self .supported_toolchains = None
37
-
37
+
38
38
# list of extra specific labels
39
39
self .extra_labels = []
40
-
40
+
41
41
self .name = self .__class__ .__name__
42
-
42
+
43
43
def program_cycle_s (self ):
44
44
return 4 if self .is_disk_virtual else 1.5
45
-
45
+
46
46
def get_labels (self ):
47
47
return [self .name , CORE_LABELS [self .core ]] + self .extra_labels
48
48
49
49
50
50
class LPC2368 (Target ):
51
51
def __init__ (self ):
52
52
Target .__init__ (self )
53
-
53
+
54
54
self .core = "ARM7TDMI-S"
55
-
55
+
56
56
self .extra_labels = ['NXP' , 'LPC23XX' ]
57
-
57
+
58
58
self .supported_toolchains = ["ARM" ]
59
59
60
60
61
61
class LPC1768 (Target ):
62
62
def __init__ (self ):
63
63
Target .__init__ (self )
64
-
64
+
65
65
self .core = "Cortex-M3"
66
-
66
+
67
67
self .extra_labels = ['NXP' , 'LPC176X' ]
68
-
68
+
69
69
self .supported_toolchains = ["ARM" , "uARM" , "GCC_ARM" , "GCC_CS" , "GCC_CR" , "IAR" ]
70
70
71
71
72
72
class LPC11U24 (Target ):
73
73
def __init__ (self ):
74
74
Target .__init__ (self )
75
-
75
+
76
76
self .core = "Cortex-M0"
77
-
78
- self .extra_labels = ['NXP' , 'LPC11UXX' ]
79
-
80
- self .supported_toolchains = ["ARM" , "uARM" ]
77
+
78
+ self .extra_labels = ['NXP' , 'LPC11UXX' , 'LPC11U24_401' ]
79
+
80
+ self .supported_toolchains = ["ARM" , "uARM" , "GCC_ARM" ]
81
81
82
82
83
83
class KL05Z (Target ):
84
84
def __init__ (self ):
85
85
Target .__init__ (self )
86
-
86
+
87
87
self .core = "Cortex-M0+"
88
-
88
+
89
89
self .extra_labels = ['Freescale' ]
90
-
90
+
91
91
self .supported_toolchains = ["ARM" ]
92
-
92
+
93
93
self .is_disk_virtual = True
94
94
95
95
96
96
class KL25Z (Target ):
97
97
def __init__ (self ):
98
98
Target .__init__ (self )
99
-
99
+
100
100
self .core = "Cortex-M0+"
101
-
101
+
102
102
self .extra_labels = ['Freescale' ]
103
-
103
+
104
104
self .supported_toolchains = ["ARM" , "GCC_CW_EWL" , "GCC_CW_NEWLIB" , "GCC_ARM" ]
105
-
105
+
106
106
self .is_disk_virtual = True
107
107
108
108
109
109
class LPC812 (Target ):
110
110
def __init__ (self ):
111
111
Target .__init__ (self )
112
-
112
+
113
113
self .core = "Cortex-M0+"
114
-
114
+
115
115
self .extra_labels = ['NXP' , 'LPC81X' ]
116
-
116
+
117
117
self .supported_toolchains = ["uARM" ]
118
-
118
+
119
119
self .is_disk_virtual = True
120
120
121
121
122
122
class LPC4088 (Target ):
123
123
def __init__ (self ):
124
124
Target .__init__ (self )
125
-
125
+
126
126
self .core = "Cortex-M4"
127
-
127
+
128
128
self .extra_labels = ['NXP' , 'LPC408X' ]
129
-
129
+
130
130
self .supported_toolchains = ["ARM" , "GCC_CR" ]
131
131
132
132
133
133
class LPC4330_M4 (Target ):
134
134
def __init__ (self ):
135
135
Target .__init__ (self )
136
-
136
+
137
137
self .core = "Cortex-M4"
138
-
138
+
139
139
self .extra_labels = ['NXP' , 'LPC43XX' ]
140
-
140
+
141
141
self .supported_toolchains = ["ARM" , "GCC_CR" , "IAR" ]
142
142
143
143
144
144
class LPC4330_M0 (Target ):
145
145
def __init__ (self ):
146
146
Target .__init__ (self )
147
-
147
+
148
148
self .core = "Cortex-M0"
149
-
149
+
150
150
self .extra_labels = ['NXP' , 'LPC43XX' ]
151
-
151
+
152
152
self .supported_toolchains = ["ARM" , "GCC_CR" , "IAR" ]
153
153
154
+
154
155
class LPC1800 (Target ):
155
156
def __init__ (self ):
156
157
Target .__init__ (self )
157
-
158
+
158
159
self .core = "Cortex-M3"
159
-
160
+
160
161
self .extra_labels = ['NXP' , 'LPC43XX' ]
161
-
162
+
162
163
self .supported_toolchains = ["ARM" , "GCC_CR" , "IAR" ]
163
164
165
+
164
166
class STM32F407 (Target ):
165
167
def __init__ (self ):
166
168
Target .__init__ (self )
167
-
169
+
168
170
self .core = "Cortex-M4"
169
-
171
+
170
172
self .extra_labels = ['STM' , 'STM32F4XX' ]
171
-
173
+
172
174
self .supported_toolchains = ["ARM" , "GCC_ARM" ]
173
175
174
176
175
177
class MBED_MCU (Target ):
176
178
def __init__ (self ):
177
179
Target .__init__ (self )
178
-
180
+
179
181
self .core = "Cortex-M0+"
180
-
182
+
181
183
self .extra_labels = ['ARM' ]
182
-
184
+
183
185
self .supported_toolchains = ["ARM" ]
184
186
187
+
185
188
class LPC1347 (Target ):
186
189
def __init__ (self ):
187
190
Target .__init__ (self )
188
-
191
+
189
192
self .core = "Cortex-M3"
190
-
193
+
191
194
self .extra_labels = ['NXP' , 'LPC13XX' ]
192
-
195
+
193
196
self .supported_toolchains = ["ARM" , "GCC_ARM" ]
194
197
198
+
195
199
class LPC1114 (Target ):
196
- def __init__ (self ):
197
- Target .__init__ (self )
198
-
199
- self .core = "Cortex-M0"
200
-
201
- self .extra_labels = ['NXP' , 'LPC11XX' ]
202
-
203
- self .supported_toolchains = ["ARM" , "uARM" , "GCC_ARM" ]
200
+ def __init__ (self ):
201
+ Target .__init__ (self )
202
+
203
+ self .core = "Cortex-M0"
204
+
205
+ self .extra_labels = ['NXP' , 'LPC11XX' ]
206
+
207
+ self .supported_toolchains = ["ARM" , "uARM" , "GCC_ARM" ]
208
+
204
209
205
210
class LPC11C24 (Target ):
206
211
def __init__ (self ):
@@ -211,12 +216,14 @@ def __init__(self):
211
216
self .extra_labels = ['NXP' , 'LPC11CXX' ]
212
217
213
218
self .supported_toolchains = ["ARM" , "uARM" , "GCC_ARM" ]
214
-
219
+
220
+
215
221
# Get a single instance for each target
216
222
TARGETS = [
217
223
LPC2368 (),
218
224
LPC1768 (),
219
225
LPC11U24 (),
226
+ LPC11U24_301 (),
220
227
KL05Z (),
221
228
KL25Z (),
222
229
LPC812 (),
@@ -225,7 +232,7 @@ def __init__(self):
225
232
STM32F407 (),
226
233
MBED_MCU (),
227
234
LPC1347 (),
228
- LPC1114 (),
235
+ LPC1114 (),
229
236
LPC11C24 ()
230
237
]
231
238
0 commit comments