Skip to content

Commit f597baf

Browse files
Targets.py nrf correction
1 parent 78b141b commit f597baf

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

workspace_tools/targets.py

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,16 @@ def __init__(self):
368368
self.supported_toolchains = ["ARM", "uARM", "GCC_ARM"]
369369

370370

371+
class UBLOX_C027(Target):
372+
def __init__(self):
373+
Target.__init__(self)
374+
375+
self.core = "Cortex-M3"
376+
377+
self.extra_labels = ['NXP', 'LPC176X', 'UBLOX_C027']
378+
379+
self.supported_toolchains = ["ARM", "uARM", "GCC_ARM", "GCC_CS", "GCC_CR", "IAR"]
380+
371381
class NRF51822(Target):
372382
EXPECTED_SOFTDEVICE = 's110_nrf51822_6.0.0_softdevice.hex'
373383
UICR_START = 0x10001000
@@ -382,19 +392,8 @@ def __init__(self):
382392

383393
self.supported_toolchains = ["ARM"]
384394

385-
386-
class UBLOX_C027(Target):
387-
def __init__(self):
388-
Target.__init__(self)
389-
390-
self.core = "Cortex-M3"
391-
392-
self.extra_labels = ['NXP', 'LPC176X', 'UBLOX_C027']
393-
394-
self.supported_toolchains = ["ARM", "uARM", "GCC_ARM", "GCC_CS", "GCC_CR", "IAR"]
395-
396395
self.binary_format = "hex"
397-
396+
398397
def init_hooks(self, hook, toolchain_name):
399398
if toolchain_name in ['ARM_STD', 'ARM_MICRO']:
400399
hook.hook_add_binary("post", self.binary_hook)

0 commit comments

Comments
 (0)