From 9dca511e7e5c305ee4f5773fa62fe443d174542f Mon Sep 17 00:00:00 2001 From: bugobliterator Date: Mon, 14 Oct 2024 16:40:22 +0800 Subject: [PATCH] AP_HAL_ChibiOS: do not run through SPI_RX and TX as well we use MISO and MOSI name for SPI --- libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py b/libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py index 674ea794b8..935db8536f 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py +++ b/libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py @@ -2404,6 +2404,8 @@ INCLUDE common.ld gpioset = set() for label in self.bylabel: p = self.bylabel[label] + if 'SPI' in label and ('RX' in label or 'TX' in label): + continue gpio = p.extra_value('GPIO', type=int) if gpio is None: continue