mirror of https://github.com/ARMmbed/mbed-os.git
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
parent
c1eaf2c358
commit
d541b461c9
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue