Skip to content

Commit d6c658e

Browse files
committed
Fix targets.py formatting
1 parent 27d07f4 commit d6c658e

File tree

1 file changed

+67
-60
lines changed

1 file changed

+67
-60
lines changed

workspace_tools/targets.py

Lines changed: 67 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -28,179 +28,184 @@ class Target:
2828
def __init__(self):
2929
# ARM Core
3030
self.core = None
31-
31+
3232
# Is the disk provided by the interface chip of this board virtual?
3333
self.is_disk_virtual = False
34-
34+
3535
# list of toolchains that are supported by the mbed SDK for this target
3636
self.supported_toolchains = None
37-
37+
3838
# list of extra specific labels
3939
self.extra_labels = []
40-
40+
4141
self.name = self.__class__.__name__
42-
42+
4343
def program_cycle_s(self):
4444
return 4 if self.is_disk_virtual else 1.5
45-
45+
4646
def get_labels(self):
4747
return [self.name, CORE_LABELS[self.core]] + self.extra_labels
4848

4949

5050
class LPC2368(Target):
5151
def __init__(self):
5252
Target.__init__(self)
53-
53+
5454
self.core = "ARM7TDMI-S"
55-
55+
5656
self.extra_labels = ['NXP', 'LPC23XX']
57-
57+
5858
self.supported_toolchains = ["ARM"]
5959

6060

6161
class LPC1768(Target):
6262
def __init__(self):
6363
Target.__init__(self)
64-
64+
6565
self.core = "Cortex-M3"
66-
66+
6767
self.extra_labels = ['NXP', 'LPC176X']
68-
68+
6969
self.supported_toolchains = ["ARM", "uARM", "GCC_ARM", "GCC_CS", "GCC_CR", "IAR"]
7070

7171

7272
class LPC11U24(Target):
7373
def __init__(self):
7474
Target.__init__(self)
75-
75+
7676
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"]
8181

8282

8383
class KL05Z(Target):
8484
def __init__(self):
8585
Target.__init__(self)
86-
86+
8787
self.core = "Cortex-M0+"
88-
88+
8989
self.extra_labels = ['Freescale']
90-
90+
9191
self.supported_toolchains = ["ARM"]
92-
92+
9393
self.is_disk_virtual = True
9494

9595

9696
class KL25Z(Target):
9797
def __init__(self):
9898
Target.__init__(self)
99-
99+
100100
self.core = "Cortex-M0+"
101-
101+
102102
self.extra_labels = ['Freescale']
103-
103+
104104
self.supported_toolchains = ["ARM", "GCC_CW_EWL", "GCC_CW_NEWLIB", "GCC_ARM"]
105-
105+
106106
self.is_disk_virtual = True
107107

108108

109109
class LPC812(Target):
110110
def __init__(self):
111111
Target.__init__(self)
112-
112+
113113
self.core = "Cortex-M0+"
114-
114+
115115
self.extra_labels = ['NXP', 'LPC81X']
116-
116+
117117
self.supported_toolchains = ["uARM"]
118-
118+
119119
self.is_disk_virtual = True
120120

121121

122122
class LPC4088(Target):
123123
def __init__(self):
124124
Target.__init__(self)
125-
125+
126126
self.core = "Cortex-M4"
127-
127+
128128
self.extra_labels = ['NXP', 'LPC408X']
129-
129+
130130
self.supported_toolchains = ["ARM", "GCC_CR"]
131131

132132

133133
class LPC4330_M4(Target):
134134
def __init__(self):
135135
Target.__init__(self)
136-
136+
137137
self.core = "Cortex-M4"
138-
138+
139139
self.extra_labels = ['NXP', 'LPC43XX']
140-
140+
141141
self.supported_toolchains = ["ARM", "GCC_CR", "IAR"]
142142

143143

144144
class LPC4330_M0(Target):
145145
def __init__(self):
146146
Target.__init__(self)
147-
147+
148148
self.core = "Cortex-M0"
149-
149+
150150
self.extra_labels = ['NXP', 'LPC43XX']
151-
151+
152152
self.supported_toolchains = ["ARM", "GCC_CR", "IAR"]
153153

154+
154155
class LPC1800(Target):
155156
def __init__(self):
156157
Target.__init__(self)
157-
158+
158159
self.core = "Cortex-M3"
159-
160+
160161
self.extra_labels = ['NXP', 'LPC43XX']
161-
162+
162163
self.supported_toolchains = ["ARM", "GCC_CR", "IAR"]
163164

165+
164166
class STM32F407(Target):
165167
def __init__(self):
166168
Target.__init__(self)
167-
169+
168170
self.core = "Cortex-M4"
169-
171+
170172
self.extra_labels = ['STM', 'STM32F4XX']
171-
173+
172174
self.supported_toolchains = ["ARM", "GCC_ARM"]
173175

174176

175177
class MBED_MCU(Target):
176178
def __init__(self):
177179
Target.__init__(self)
178-
180+
179181
self.core = "Cortex-M0+"
180-
182+
181183
self.extra_labels = ['ARM']
182-
184+
183185
self.supported_toolchains = ["ARM"]
184186

187+
185188
class LPC1347(Target):
186189
def __init__(self):
187190
Target.__init__(self)
188-
191+
189192
self.core = "Cortex-M3"
190-
193+
191194
self.extra_labels = ['NXP', 'LPC13XX']
192-
195+
193196
self.supported_toolchains = ["ARM", "GCC_ARM"]
194197

198+
195199
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+
204209

205210
class LPC11C24(Target):
206211
def __init__(self):
@@ -211,12 +216,14 @@ def __init__(self):
211216
self.extra_labels = ['NXP', 'LPC11CXX']
212217

213218
self.supported_toolchains = ["ARM", "uARM", "GCC_ARM"]
214-
219+
220+
215221
# Get a single instance for each target
216222
TARGETS = [
217223
LPC2368(),
218224
LPC1768(),
219225
LPC11U24(),
226+
LPC11U24_301(),
220227
KL05Z(),
221228
KL25Z(),
222229
LPC812(),
@@ -225,7 +232,7 @@ def __init__(self):
225232
STM32F407(),
226233
MBED_MCU(),
227234
LPC1347(),
228-
LPC1114(),
235+
LPC1114(),
229236
LPC11C24()
230237
]
231238

0 commit comments

Comments
 (0)