Disable restricted uart peripheral for NRF52840

While testing it has been found that all tests are skipped in the FPGA uart test on the NRF52840 target.

This is caused by the following change:
https://github.com/ARMmbed/mbed-os/pull/12379 - Add STDIO UART as restricted for FPGA testing for all targets

NRF targets have MUXed pins and mainly do not provide pin-maps. There are only dummy pin-maps for testing.
These pin-maps hold only pins and do not specify the peripheral or function of the pin (always 0). Because of that if we restrict STDIO uart peripheral (0) all FPGA uart test cases will be skipped.
To fix this we will remove this restriction for NRF52840. Restriction for testing the USBTX, USBRX pins is sufficient in this case.
pull/12407/head
Przemyslaw Stekiel 2020-02-11 15:13:42 +01:00
parent c1eaf2c358
commit d541b461c9
1 changed files with 11 additions and 0 deletions

View File

@ -303,3 +303,14 @@ const PinMap PinMap_QSPI_testing[] = {
{NC, NC, 0}
};
/* On NRF we have just dummy pin-maps for testing (no peripherals are specified).
Disable restriction for STDIO uart peripheral. */
const PeripheralList *pinmap_uart_restricted_peripherals()
{
static const PeripheralList peripheral_list = {
0,
0
};
return &peripheral_list;
}