Skip to content

Commit c0e040b

Browse files
committed
[workaround]Rename SD.h to SDStm.h
Rename the SD.h from SD library provided in this repo. By this way, including SD.h will use the standard Arduino library, used for shields including SD card slot through SPI. Warning: Consider it as a workaround. Name could be change later. Linked to issue #2 Signed-off-by: Frederic.Pillon <[email protected]>
1 parent da1dfef commit c0e040b

File tree

9 files changed

+9
-9
lines changed

9 files changed

+9
-9
lines changed

Diff for: libraries/SD/examples/CardInfo/CardInfo.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
1010
*/
1111
// include the SD library:
12-
#include <SD.h>
12+
#include <SDStm.h>
1313

1414
Sd2Card card;
1515
SdFatFs fatFs;

Diff for: libraries/SD/examples/Datalogger/Datalogger.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
1111
*/
1212

13-
#include <SD.h>
13+
#include <SDStm.h>
1414

1515
uint32_t A[] = { A0, A1, A2};
1616

Diff for: libraries/SD/examples/DumpFile/DumpFile.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
1212
*/
1313

14-
#include <SD.h>
14+
#include <SDStm.h>
1515

1616
void setup()
1717
{

Diff for: libraries/SD/examples/Files/Files.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
This example code is in the public domain.
99
1010
*/
11-
#include <SD.h>
11+
#include <SDStm.h>
1212

1313
File myFile;
1414

Diff for: libraries/SD/examples/Full/Full.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <SD.h>
1+
#include <SDStm.h>
22

33
#define COUNTOF(__BUFFER__) (sizeof(__BUFFER__) / sizeof(*(__BUFFER__)))
44
#define BUFFERSIZE (COUNTOF(wtext) -1)

Diff for: libraries/SD/examples/ReadWrite/ReadWrite.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
1010
*/
1111

12-
#include <SD.h>
12+
#include <SDStm.h>
1313

1414
File myFile;
1515

Diff for: libraries/SD/examples/listfiles/listfiles.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
This example code is in the public domain.
1111
1212
*/
13-
#include <SD.h>
13+
#include <SDStm.h>
1414

1515
File root;
1616

Diff for: libraries/SD/src/SD.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
1414
This library provides four key benefits:
1515
16-
* Including `SD.h` automatically creates a global
16+
* Including `SDStm.h` automatically creates a global
1717
`SD` object which can be interacted with in a similar
1818
manner to other standard global objects like `Serial` and `Ethernet`.
1919
@@ -57,7 +57,7 @@ extern "C" {
5757
#include "stm32_def.h"
5858
}
5959
#include "assert.h"
60-
#include "SD.h"
60+
#include "SDStm.h"
6161
SDClass SD;
6262

6363
/**
File renamed without changes.

0 commit comments

Comments
 (0)