Skip to content

Commit a0a5086

Browse files
committed
M467: Exclude UNO SPI pins from FPGA CI Test Shield test
UNO D8/D9/D10/D11/D12/D13 can wire to on-board SPI flash. Exclude these pins from FPGA CI Test Shield test.
1 parent 42cfb84 commit a0a5086

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

targets/TARGET_NUVOTON/TARGET_M460/pinmap.c

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,15 @@ void pin_mode(PinName pin, PinMode mode)
8888
const PinList *pinmap_restricted_pins()
8989
{
9090
static const PinName pins[] = {
91-
CONSOLE_TX, CONSOLE_RX, // Dedicated to USB VCOM
91+
CONSOLE_TX, CONSOLE_RX, // Dedicated to USB VCOM
92+
#if MBED_CONF_TARGET_EXCLUDE_UNO_SPI_FROM_FPGA_CI_TEST_SHIELD_TEST
93+
ARDUINO_UNO_D8, // Dedicated to on-board SPI flash
94+
ARDUINO_UNO_D9,
95+
ARDUINO_UNO_D10,
96+
ARDUINO_UNO_D11,
97+
ARDUINO_UNO_D12,
98+
ARDUINO_UNO_D13,
99+
#endif
92100
};
93101
static const PinList pin_list = {
94102
sizeof(pins) / sizeof(pins[0]),

targets/targets.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7416,6 +7416,11 @@
74167416
"help": "Select GPIO IRQ debounce sample rate: GPIO_DBCTL_DBCLKSEL_1, GPIO_DBCTL_DBCLKSEL_2, GPIO_DBCTL_DBCLKSEL_4, ..., or GPIO_DBCTL_DBCLKSEL_32768",
74177417
"value": "GPIO_DBCTL_DBCLKSEL_16"
74187418
},
7419+
"exclude-uno-spi-from-fpga-ci-test-shield-test": {
7420+
"help": "Exclude UNO SPI pins (D8/D9/D10/D11/D12/D13) from FPGA CI Test Shield test for wiring to on-board SPI flash",
7421+
"options": [false, true],
7422+
"value": false
7423+
},
74197424
"hbi-enable": {
74207425
"help": "Enable HBI for HyperRAM",
74217426
"options": [false, true]
@@ -7525,6 +7530,7 @@
75257530
"usb-uart-tx": "PB_13",
75267531
"usb-uart-rx": "PB_12",
75277532
"network-default-interface-type": "ETHERNET",
7533+
"exclude-uno-spi-from-fpga-ci-test-shield-test": true,
75287534
"hbi-enable": false,
75297535
"hbi-mfp-reg-list": "0x40000534, 0x4000057C, 0x40000590, 0x40000594",
75307536
"hbi-mfp-reg-msk-list": "0xFFFFFF00, 0xFFFFFFFF, 0xFFFF0000, 0xFFFFFFFF",

0 commit comments

Comments
 (0)