Skip to content

Commit 00cac0e

Browse files
author
todor
committed
Used the latest targets.py to include DISCO targets.
1 parent d5b1abf commit 00cac0e

File tree

1 file changed

+58
-2
lines changed

1 file changed

+58
-2
lines changed

workspace_tools/targets.py

Lines changed: 58 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
you may not use this file except in compliance with the License.
77
You may obtain a copy of the License at
88
9-
http://www.apache.org/licenses/LICENSE-2.0
9+
http://www.apache.org/licenses/LICENSE-2.0
1010
1111
Unless required by applicable law or agreed to in writing, software
1212
distributed under the License is distributed on an "AS IS" BASIS,
@@ -328,7 +328,59 @@ def __init__(self):
328328

329329
self.supported_toolchains = ["ARM", "uARM"]
330330

331+
class DISCO_F100RB(Target):
332+
ONLINE_TOOLCHAIN = "uARM"
333+
OUTPUT_NAMING = "8.3"
334+
335+
def __init__(self):
336+
Target.__init__(self)
337+
338+
self.core = "Cortex-M3"
339+
340+
self.extra_labels = ['STM', 'STM32F1', 'STM32F100RB']
341+
342+
self.supported_toolchains = ["GCC_ARM"]
343+
344+
345+
class NUCLEO_F302R8(Target):
346+
ONLINE_TOOLCHAIN = "uARM"
347+
OUTPUT_NAMING = "8.3"
348+
349+
def __init__(self):
350+
Target.__init__(self)
351+
352+
self.core = "Cortex-M4"
353+
354+
self.extra_labels = ['STM', 'STM32F3', 'STM32F302R8']
355+
356+
self.supported_toolchains = ["ARM", "uARM"]
331357

358+
class DISCO_F051R8(Target):
359+
ONLINE_TOOLCHAIN = "uARM"
360+
OUTPUT_NAMING = "8.3"
361+
362+
def __init__(self):
363+
Target.__init__(self)
364+
365+
self.core = "Cortex-M0"
366+
367+
self.extra_labels = ['STM', 'STM32F0', 'STM32F051','STM32F051R8']
368+
369+
self.supported_toolchains = ["GCC_ARM"]
370+
371+
class DISCO_F407VG(Target):
372+
ONLINE_TOOLCHAIN = "uARM"
373+
OUTPUT_NAMING = "8.3"
374+
375+
def __init__(self):
376+
Target.__init__(self)
377+
378+
self.core = "Cortex-M4F"
379+
380+
self.extra_labels = ['STM', 'STM32F4', 'STM32F407','STM32F407VG']
381+
382+
self.supported_toolchains = ["GCC_ARM"]
383+
332384
class LPC1347(Target):
333385
def __init__(self):
334386
Target.__init__(self)
@@ -474,14 +526,18 @@ def __init__(self):
474526
NUCLEO_L152RE(),
475527
NUCLEO_F401RE(),
476528
NUCLEO_F030R8(),
529+
NUCLEO_F302R8(),
477530
LPC1347(),
478531
LPC1114(),
479532
LPC11C24(),
480533
LPC11U35_401(),
481534
LPC11U35_501(),
482535
NRF51822(),
483536
UBLOX_C027(),
484-
LPC1549()
537+
LPC1549(),
538+
DISCO_F100RB(),
539+
DISCO_F051R8(),
540+
DISCO_F407VG(),
485541
]
486542

487543
# Map each target name to its unique instance

0 commit comments

Comments
 (0)