Skip to content

Commit 9aa69d0

Browse files
committed
M263: Exclude USB UART from testing
USB UART is dedicated to USB COM and so must exclude from FPGA CI testing.
1 parent 3cb95a8 commit 9aa69d0

File tree

1 file changed

+15
-0
lines changed
  • targets/TARGET_NUVOTON/TARGET_M261

1 file changed

+15
-0
lines changed

targets/TARGET_NUVOTON/TARGET_M261/pinmap.c

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#include "mbed_assert.h"
1919
#include "pinmap.h"
2020
#include "PortNames.h"
21+
#include "PeripheralNames.h"
2122
#include "mbed_error.h"
2223

2324
/**
@@ -83,3 +84,17 @@ void pin_mode(PinName pin, PinMode mode)
8384
*/
8485
}
8586

87+
/* List of peripherals excluded from testing */
88+
const PeripheralList *pinmap_restricted_peripherals()
89+
{
90+
static const int perifs[] = {
91+
STDIO_UART // Dedicated to USB VCOM
92+
};
93+
94+
static const PeripheralList peripheral_list = {
95+
sizeof(perifs) / sizeof(perifs[0]),
96+
perifs
97+
};
98+
99+
return &peripheral_list;
100+
}

0 commit comments

Comments
 (0)