Skip to content

Commit 32e86bb

Browse files
committed
Add support for mbed exporter
(uvision, gcc_arm, iar)
1 parent 8ff9488 commit 32e86bb

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
@@ -2862,6 +2862,7 @@
28622862
"core": "Cortex-M3",
28632863
"default_toolchain": "GCC_ARM",
28642864
"inherits": ["Target"],
2865+
"detect_code": ["4600"],
28652866
"extra_labels": ["Realtek", "AMEBA", "RTL8195A"],
28662867
"macros": ["__RTL8195A__","CONFIG_PLATFORM_8195A","CONFIG_MBED_ENABLED","PLATFORM_CMSIS_RTOS"],
28672868
"supported_toolchains": ["GCC_ARM", "ARM", "IAR"],
@@ -2871,6 +2872,7 @@
28712872
"function": "RTL8195ACode.binary_hook",
28722873
"toolchains": ["ARM_STD", "GCC_ARM", "IAR"]
28732874
},
2874-
"release_versions": ["5"]
2875+
"release_versions": ["5"],
2876+
"device_name": "REALTEK_RTL8195AM"
28752877
}
28762878
}

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)