Skip to content

Commit bbce69e

Browse files
Add MCU description, fix pin validation errors
1 parent 4249980 commit bbce69e

File tree

2 files changed

+77
-8
lines changed

2 files changed

+77
-8
lines changed

targets/TARGET_GigaDevice/TARGET_GD32F4XX/TARGET_GD32F450ZI/PinNames.h

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -233,15 +233,12 @@ typedef enum {
233233
ARDUINO_UNO_D15 = PORTB_8,
234234
#endif
235235

236-
LED1 = PORTF_6,
237-
LED2 = PORTC_13,
238-
LED3 = PORTE_6,
236+
#define LED1 PORTF_6
237+
#define LED2 PORTC_13
238+
#define LED3 PORTE_6
239239

240-
KEY1 = PORTE_5,
241-
KEY2 = PORTE_4,
242-
243-
BUTTON1 = KEY1,
244-
BUTTON2 = KEY2,
240+
#define BUTTON1 PORTE_5
241+
#define BUTTON2 PORTE_4
245242

246243
SERIAL_TX = PORTC_12,
247244
SERIAL_RX = PORTD_2,

targets/cmsis_mcu_descriptions.json5

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1261,6 +1261,78 @@
12611261
"sub_family": "EFR32MG12P332",
12621262
"vendor": "Silicon Labs:21"
12631263
},
1264+
"GD32F307VG": {
1265+
"algorithms": [
1266+
{
1267+
"default": true,
1268+
"file_name": "Flash/GD32F30x_CL.FLM",
1269+
"ram_size": null,
1270+
"ram_start": null,
1271+
"size": 1048576,
1272+
"start": 134217728,
1273+
"style": "Keil"
1274+
}
1275+
],
1276+
"family": "GD32F30x Series",
1277+
"from_pack": {
1278+
"pack": "GD32F30x_DFP",
1279+
"url": "https://gd32mcu.com/data/documents/pack/",
1280+
"vendor": "GigaDevice",
1281+
"version": "2.2.1"
1282+
},
1283+
"memories": {
1284+
"IRAM1": {
1285+
"access": {
1286+
"execute": false,
1287+
"non_secure": false,
1288+
"non_secure_callable": false,
1289+
"peripheral": false,
1290+
"read": true,
1291+
"secure": false,
1292+
"write": true
1293+
},
1294+
"default": true,
1295+
"p_name": null,
1296+
"size": 98304,
1297+
"start": 536870912,
1298+
"startup": false
1299+
},
1300+
"IROM1": {
1301+
"access": {
1302+
"execute": true,
1303+
"non_secure": false,
1304+
"non_secure_callable": false,
1305+
"peripheral": false,
1306+
"read": true,
1307+
"secure": false,
1308+
"write": false
1309+
},
1310+
"default": true,
1311+
"p_name": null,
1312+
"size": 1048576,
1313+
"start": 134217728,
1314+
"startup": true
1315+
}
1316+
},
1317+
"name": "GD32F307VG",
1318+
"processors": [
1319+
{
1320+
"address": null,
1321+
"ap": 0,
1322+
"apid": null,
1323+
"core": "CortexM4",
1324+
"default_reset_sequence": null,
1325+
"dp": 0,
1326+
"fpu": "SinglePrecision",
1327+
"mpu": "Present",
1328+
"name": null,
1329+
"svd": "SVD/GD32F30x_CL.svd",
1330+
"unit": 0
1331+
}
1332+
],
1333+
"sub_family": "GD32F307",
1334+
"vendor": "GigaDevice:123"
1335+
},
12641336
"GD32F450ZI": {
12651337
"algorithms": [
12661338
{

0 commit comments

Comments
 (0)