Skip to content

Commit 926cda5

Browse files
committed
M487: Fix UART 6/7 base address encoding
Fix UART 6/7 base addresses are incorrectly encoded into peripheral names
1 parent 149c5b1 commit 926cda5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

targets/TARGET_NUVOTON/TARGET_M480/PeripheralNames.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ typedef enum {
101101
UART_3 = (int) NU_MODNAME(UART3_BASE, 3, 0),
102102
UART_4 = (int) NU_MODNAME(UART4_BASE, 4, 0),
103103
UART_5 = (int) NU_MODNAME(UART5_BASE, 5, 0),
104-
UART_6 = (int) NU_MODNAME(UART5_BASE, 6, 0),
105-
UART_7 = (int) NU_MODNAME(UART5_BASE, 7, 0),
104+
UART_6 = (int) NU_MODNAME(UART6_BASE, 6, 0),
105+
UART_7 = (int) NU_MODNAME(UART7_BASE, 7, 0),
106106
// NOTE: board-specific
107107
#if defined(MBED_CONF_TARGET_USB_UART)
108108
USB_UART = MBED_CONF_TARGET_USB_UART,

0 commit comments

Comments
 (0)