@@ -368,6 +368,16 @@ def __init__(self):
368
368
self .supported_toolchains = ["ARM" , "uARM" , "GCC_ARM" ]
369
369
370
370
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
+
371
381
class NRF51822 (Target ):
372
382
EXPECTED_SOFTDEVICE = 's110_nrf51822_6.0.0_softdevice.hex'
373
383
UICR_START = 0x10001000
@@ -382,19 +392,8 @@ def __init__(self):
382
392
383
393
self .supported_toolchains = ["ARM" ]
384
394
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
-
396
395
self .binary_format = "hex"
397
-
396
+
398
397
def init_hooks (self , hook , toolchain_name ):
399
398
if toolchain_name in ['ARM_STD' , 'ARM_MICRO' ]:
400
399
hook .hook_add_binary ("post" , self .binary_hook )
0 commit comments