|
@@ -21,7 +21,7 @@
|
21
|
21
|
*/
|
22
|
22
|
#pragma once
|
23
|
23
|
|
24
|
|
-#include "../shared/Marduino.h"
|
|
24
|
+#include "../../inc/MarlinConfig.h" // Allow pins/pins.h to override SDIO clock / retries
|
25
|
25
|
|
26
|
26
|
#include <libmaple/sdio.h>
|
27
|
27
|
#include <libmaple/dma.h>
|
|
@@ -100,7 +100,13 @@
|
100
|
100
|
#define SDIO_DATA_TIMEOUT 100U /* Read data transfer timeout */
|
101
|
101
|
#define SDIO_WRITE_TIMEOUT 200U /* Write data transfer timeout */
|
102
|
102
|
|
103
|
|
-#define SDIO_CLOCK 18000000 /* 18 MHz */
|
|
103
|
+#ifndef SDIO_CLOCK
|
|
104
|
+ #define SDIO_CLOCK 18000000 /* 18 MHz */
|
|
105
|
+#endif
|
|
106
|
+
|
|
107
|
+#ifndef SDIO_READ_RETRIES
|
|
108
|
+ #define SDIO_READ_RETRIES 3
|
|
109
|
+#endif
|
104
|
110
|
|
105
|
111
|
// ------------------------
|
106
|
112
|
// Types
|