Skip to content

Commit 90b01bb

Browse files
committed
Add BOOT and OTA for Seeed Tiny BLE target
1 parent 46e1601 commit 90b01bb

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

workspace_tools/targets.py

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -864,10 +864,18 @@ def __init__(self):
864864
self.extra_labels = ['NORDIC', 'MCU_NRF51822', 'MCU_NORDIC_16K']
865865
self.macros = ['TARGET_NRF51822']
866866

867+
class SEEED_TINY_BLE_BOOT(NRF51822):
868+
def __init__(self):
869+
NRF51822.__init__(self)
870+
self.extra_labels = ['NORDIC', 'MCU_NRF51822', 'MCU_NORDIC_16K', 'SEEED_TINY_BLE']
871+
self.macros = ['TARGET_NRF51822', 'TARGET_SEEED_TINY_BLE', 'TARGET_OTA_ENABLED']
872+
self.MERGE_SOFT_DEVICE = True
873+
self.MERGE_BOOTLOADER = True
874+
867875
class SEEED_TINY_BLE_OTA(NRF51822):
868876
def __init__(self):
869877
NRF51822.__init__(self)
870-
self.extra_labels = ['NORDIC', 'MCU_NRF51822', 'MCU_NORDIC_16K']
878+
self.extra_labels = ['NORDIC', 'MCU_NRF51822', 'MCU_NORDIC_16K', 'SEEED_TINY_BLE']
871879
self.macros = ['TARGET_NRF51822', 'TARGET_SEEED_TINY_BLE', 'TARGET_OTA_ENABLED']
872880
self.MERGE_SOFT_DEVICE = False
873881

@@ -923,6 +931,12 @@ def __init__(self):
923931
self.core = "Cortex-M0"
924932
self.extra_labels = ['NORDIC', 'MCU_NRF51822', 'MCU_NORDIC_16K', 'DELTA_DFCM_NNN40']
925933
self.MERGE_SOFT_DEVICE = False
934+
class DELTA_DFCM_NNN40_OTA(NRF51822):
935+
def __init__(self):
936+
NRF51822.__init__(self)
937+
self.core = "Cortex-M0"
938+
self.extra_labels = ['NORDIC', 'MCU_NRF51822', 'MCU_NORDIC_16K', 'DELTA_DFCM_NNN40']
939+
self.MERGE_SOFT_DEVICE = False
926940

927941

928942
### ARM ###
@@ -1086,8 +1100,9 @@ def program_cycle_s(self):
10861100
NRF51_DK_OTA(), # nRF51822
10871101
NRF51_DONGLE(),
10881102
ARCH_BLE(), # nRF51822
1089-
SEEED_TINY_BLE(),
1090-
SEEED_TINY_BLE_OTA(),
1103+
SEEED_TINY_BLE(), # nRF51822
1104+
SEEED_TINY_BLE_BOOT(),# nRF51822
1105+
SEEED_TINY_BLE_OTA(),# nRF51822
10911106
HRM1017(), # nRF51822
10921107
RBLAB_NRF51822(),# nRF51822
10931108
RBLAB_BLENANO(),# nRF51822

0 commit comments

Comments
 (0)