Skip to content

Commit f551341

Browse files
committed
[M252KG] Exclude USB UART from testing
USB UART is dedicated to USB COM and so must exclude from FPGA CI testing.
1 parent c9fb405 commit f551341

File tree

1 file changed

+16
-0
lines changed
  • targets/TARGET_NUVOTON/TARGET_M251

1 file changed

+16
-0
lines changed

targets/TARGET_NUVOTON/TARGET_M251/pinmap.c

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#include "mbed_assert.h"
2020
#include "pinmap.h"
2121
#include "PortNames.h"
22+
#include "PeripheralNames.h"
2223
#include "mbed_error.h"
2324

2425
/**
@@ -82,3 +83,18 @@ void pin_mode(PinName pin, PinMode mode)
8283
* 2. PushPullOutput/PIN_INPUT
8384
*/
8485
}
86+
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)