M263: Exclude USB UART from testing

USB UART is dedicated to USB COM and so must exclude from FPGA CI testing.
pull/11379/head
Chun-Chieh Li 2019-08-20 16:27:47 +08:00
parent 3cb95a8baf
commit 9aa69d03bf
1 changed files with 15 additions and 0 deletions

View File

@ -18,6 +18,7 @@
#include "mbed_assert.h"
#include "pinmap.h"
#include "PortNames.h"
#include "PeripheralNames.h"
#include "mbed_error.h"
/**
@ -83,3 +84,17 @@ void pin_mode(PinName pin, PinMode mode)
*/
}
/* 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;
}