Skip to content

Commit d541b46

Browse files
committed
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: #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.
1 parent c1eaf2c commit d541b46

File tree

1 file changed

+11
-0
lines changed
  • targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/TARGET_MCU_NRF52840

1 file changed

+11
-0
lines changed

targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/TARGET_MCU_NRF52840/PeripheralPins.c

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,3 +303,14 @@ const PinMap PinMap_QSPI_testing[] = {
303303

304304
{NC, NC, 0}
305305
};
306+
307+
/* On NRF we have just dummy pin-maps for testing (no peripherals are specified).
308+
Disable restriction for STDIO uart peripheral. */
309+
const PeripheralList *pinmap_uart_restricted_peripherals()
310+
{
311+
static const PeripheralList peripheral_list = {
312+
0,
313+
0
314+
};
315+
return &peripheral_list;
316+
}

0 commit comments

Comments
 (0)