From 3cdf84d943bf9f42475104db8fb1d29ba2cf8d6e Mon Sep 17 00:00:00 2001 From: Chun-Chieh Li Date: Tue, 30 Jul 2019 13:17:27 +0800 Subject: [PATCH] Exclude USB UART from testing USB UART is dedicated to USB COM and so must exclude from FPGA CI testing. --- targets/TARGET_NUVOTON/TARGET_M251/pinmap.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/targets/TARGET_NUVOTON/TARGET_M251/pinmap.c b/targets/TARGET_NUVOTON/TARGET_M251/pinmap.c index b058fa5d7f..f18e3913a0 100644 --- a/targets/TARGET_NUVOTON/TARGET_M251/pinmap.c +++ b/targets/TARGET_NUVOTON/TARGET_M251/pinmap.c @@ -19,6 +19,7 @@ #include "mbed_assert.h" #include "pinmap.h" #include "PortNames.h" +#include "PeripheralNames.h" #include "mbed_error.h" /** @@ -82,3 +83,18 @@ void pin_mode(PinName pin, PinMode mode) * 2. PushPullOutput/PIN_INPUT */ } + +/* List of peripherals excluded from testing */ +const PeripheralList *pinmap_restricted_peripherals() +{ + static const int perifs[] = { + STDIO_UART // Dedicated to USB VCOM + }; + + static const PeripheralList peripheral_list = { + sizeof(perifs) / sizeof(perifs[0]), + perifs + }; + + return &peripheral_list; +}