Skip to content

Commit 92ca664

Browse files
Archcady0xc0170
authored andcommitted
Add support for mbed exporter
(uvision, gcc_arm, iar)
1 parent 4eda93e commit 92ca664

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

targets/targets.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2909,6 +2909,7 @@
29092909
"core": "Cortex-M3",
29102910
"default_toolchain": "GCC_ARM",
29112911
"inherits": ["Target"],
2912+
"detect_code": ["4600"],
29122913
"extra_labels": ["Realtek", "AMEBA", "RTL8195A"],
29132914
"macros": ["__RTL8195A__","CONFIG_PLATFORM_8195A","CONFIG_MBED_ENABLED","PLATFORM_CMSIS_RTOS"],
29142915
"supported_toolchains": ["GCC_ARM", "ARM", "IAR"],
@@ -2918,6 +2919,7 @@
29182919
"function": "RTL8195ACode.binary_hook",
29192920
"toolchains": ["ARM_STD", "GCC_ARM", "IAR"]
29202921
},
2921-
"release_versions": ["5"]
2922+
"release_versions": ["5"],
2923+
"device_name": "REALTEK_RTL8195AM"
29222924
}
29232925
}

tools/export/iar/iar_definitions.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,5 +188,8 @@
188188
"CExtraOptionsCheck": 1,
189189
"CExtraOptions": "--drv_vector_table_base=0x0",
190190
"CMSISDAPJtagSpeedList": 10
191+
},
192+
"REALTEK_RTL8195AM": {
193+
"OGChipSelectEditMenu": "REALTEK_RTL8195AM\tRealtek REALTEK_RTL8195AM"
191194
}
192195
}

tools/export/makefile/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ class Makefile(Exporter):
3939
"MCU_NRF51Code.binary_hook",
4040
"TEENSY3_1Code.binary_hook",
4141
"LPCTargetCode.lpc_patch",
42-
"LPC4088Code.binary_hook"
42+
"LPC4088Code.binary_hook",
43+
"RTL8195ACode.binary_hook"
4344
])
4445

4546
def generate(self):

0 commit comments

Comments
 (0)