We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 21012d3 commit 22dc0cdCopy full SHA for 22dc0cd
radio/src/targets/common/arm/stm32/sdcard_spi.cpp
@@ -46,7 +46,11 @@
46
#define INIT_CMD0_RETRY_US (100UL)
47
#define R1_POLLING_RETRY_US (100 * US_PER_MS)
48
#define SD_DATA_TOKEN_RETRY_US (100 * US_PER_MS)
49
+#if defined(SD_LONG_BUSY_WAIT)
50
+#define SD_WAIT_FOR_NOT_BUSY_US (500 * US_PER_MS)
51
+#else
52
#define SD_WAIT_FOR_NOT_BUSY_US (250 * US_PER_MS)
53
+#endif
54
55
#define SD_BLOCK_READ_CMD_RETRY_US (100UL)
56
#define SD_BLOCK_WRITE_CMD_RETRY_US (100UL)
radio/src/targets/taranis/hal.h
@@ -2700,6 +2700,9 @@
2700
#endif
2701
2702
#define STORAGE_USE_SDCARD_SPI
2703
+#if defined(RADIO_GX12)
2704
+#define SD_LONG_BUSY_WAIT (true)
2705
2706
2707
#define SD_GPIO_PIN_CS GPIO_PIN(GPIOB, 12) // PB.12
2708
#define SD_GPIO_PIN_SCK GPIO_PIN(GPIOB, 13) // PB.13
0 commit comments