Skip to content

Commit 5eb314f

Browse files
author
Cruz Monrreal
authored
Merge pull request #8164 from OpenNuvoton/nuvoton_iot_m487
Support Nuvoton's new target NUMAKER_IOT_M487
2 parents da0c5d9 + 9d2fcdb commit 5eb314f

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

targets/TARGET_NUVOTON/TARGET_M480/PinNames.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,11 @@ typedef enum {
125125
LED3 = LED_GREEN,
126126
LED4 = LED1, // No real LED. Just for passing ATS.
127127
// Button naming
128+
#if TARGET_NUMAKER_PFM_M487
128129
SW2 = PG_15,
130+
#elif TARGET_NUMAKER_IOT_M487
131+
SW2 = PG_5,
132+
#endif
129133
SW3 = PF_11,
130134

131135
} PinName;

targets/targets.json

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4330,9 +4330,10 @@
43304330
"release_versions": ["5"],
43314331
"device_name": "nRF52832_xxAA"
43324332
},
4333-
"NUMAKER_PFM_M487": {
4333+
"MCU_M480": {
43344334
"core": "Cortex-M4F",
43354335
"default_toolchain": "ARM",
4336+
"public": false,
43364337
"extra_labels": ["NUVOTON", "M480", "FLASH_CMSIS_ALGO","NUVOTON_EMAC"],
43374338
"is_disk_virtual": true,
43384339
"supported_toolchains": ["ARM", "uARM", "GCC_ARM", "IAR"],
@@ -4366,12 +4367,19 @@
43664367
"macros_add": ["MBEDTLS_CONFIG_HW_SUPPORT", "LPTICKER_DELAY_TICKS=3"],
43674368
"device_has": ["USTICKER", "LPTICKER", "RTC", "ANALOGIN", "I2C", "I2CSLAVE", "I2C_ASYNCH", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "SERIAL", "SERIAL_ASYNCH", "SERIAL_FC", "STDIO_MESSAGES", "SLEEP", "SPI", "SPISLAVE", "SPI_ASYNCH", "TRNG", "FLASH", "CAN", "EMAC"],
43684369
"release_versions": ["5"],
4369-
"device_name": "M487JIDAE",
43704370
"bootloader_supported": true,
43714371
"overrides": {
43724372
"network-default-interface-type": "ETHERNET"
43734373
}
43744374
},
4375+
"NUMAKER_PFM_M487": {
4376+
"inherits": ["MCU_M480"],
4377+
"device_name": "M487JIDAE"
4378+
},
4379+
"NUMAKER_IOT_M487": {
4380+
"inherits": ["MCU_M480"],
4381+
"device_name": "M487JIDAE"
4382+
},
43754383
"TMPM066": {
43764384
"inherits": ["Target"],
43774385
"core": "Cortex-M0",

0 commit comments

Comments
 (0)