Fix RC52 unused SPI1 MISO pin mapping

Use pin index 0, which maps to NRFX_SPIM_PIN_NOT_USED, to avoid the nRF52 SPI constructor indexing g_ADigitalPinMap[255]. Remove the absent MISO shutdown reset so the sentinel cannot reset physical P0.00. Follows the variant-side fixes in #3188 and #3189.

Validated heltec_rc52_repeater and heltec_rc52_companion_radio_ble builds. ELF disassembly confirms the MISO lookup uses map[0]=0xFF instead of the +1020-byte read and shutdown has no P0.00 reset. No hardware testing performed.
This commit is contained in:
Quency-D committed 2026-11-12 15:54:21 +08:00
1 parent bf0ccfe2eb
commit 7762588e58
2 files changed
+2 -7

No files matched your search

+1 -1
View File
@@ -88,7 +88,7 @@ extern "C" {
#define PIN_SPI_MOSI (0 + 22)
#define PIN_SPI_SCK (0 + 25)
#define PIN_SPI1_MISO (-1)
#define PIN_SPI1_MISO (0) // g_ADigitalPinMap[0] is 0xFF (NRFX_SPIM_PIN_NOT_USED).
#define PIN_SPI1_MOSI PIN_TFT_SDA
#define PIN_SPI1_SCK PIN_TFT_SCL