You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The FatFs has been ported as Arduino library [here](https://github.com/stm32duino/FatFs).
@@ -31,11 +31,105 @@ User can provide his own defined options by adding his configuration in a file n
31
31
### SD
32
32
33
33
Some default definitions can be overridden using:
34
-
* board `variant.h`
35
-
*`build_opt.h`: see [Customize build options](https://github.com/stm32duino/wiki/wiki/Customize-build-options-using-build_opt.h)
36
-
37
-
*`hal_conf_extra.h`: see [HAL configuration](https://github.com/stm32duino/wiki/wiki/HAL-configuration)
38
-
34
+
* board `variant*.h`
35
+
*`build_opt.h`: see [Customize build options](https://github.com/stm32duino/Arduino_Core_STM32/wiki/Customize-build-options-using-build_opt.h)
36
+
37
+
*`hal_conf_extra.h`: see [HAL configuration](https://github.com/stm32duino/Arduino_Core_STM32/wiki/HAL-configuration)
38
+
39
+
#### SDIO/SDMMC pins definition
40
+
41
+
Since STM32 core v2.6.0, the `PinMap_SD[]` array defined in the `PeripheralPins*.c` has been split per signals:
42
+
```C
43
+
PinMap_SD_CK[]
44
+
PinMap_SD_DATA0[]
45
+
PinMap_SD_DATA1[]
46
+
PinMap_SD_DATA2[]
47
+
PinMap_SD_DATA3[]
48
+
PinMap_SD_DATA4[]
49
+
PinMap_SD_DATA5[]
50
+
PinMap_SD_DATA6[]
51
+
PinMap_SD_DATA7[]
52
+
/* Only for SDMMC */
53
+
PinMap_SD_CKIN[]
54
+
PinMap_SD_CDIR[]
55
+
PinMap_SD_D0DIR[]
56
+
PinMap_SD_D123DIR[]
57
+
```
58
+
59
+
This allows to define the SDIO/SDMMC pins to use instead of using all the pins defined in the old array.
60
+
By default, if no pins are explicitly defined, the first one from each array is used.
61
+
62
+
* To redefine the default one, use the following macros:
63
+
64
+
*`SDX_D0`
65
+
*`SDX_D1`
66
+
*`SDX_D2`
67
+
*`SDX_D3`
68
+
*`SDX_CMD`
69
+
*`SDX_CK`
70
+
71
+
* Only for `SDMMC`:
72
+
*`SDX_CKIN`
73
+
*`SDX_CDIR`
74
+
*`SDX_D0DIR`
75
+
*`SDX_D123DIR`
76
+
77
+
* or redefine the default one before call of `begin()` of `SDClass` or `init()` of `Sd2Card`, use the following methods:
0 commit comments