Skip to content

Commit

Permalink
[workaround]Rename SD.h to SDStm.h
Browse files Browse the repository at this point in the history
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 <frederic.pillon@st.com>
  • Loading branch information
fpistm committed Jun 16, 2017
1 parent da1dfef commit c0e040b
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion libraries/SD/examples/CardInfo/CardInfo.ino
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*/
// include the SD library:
#include <SD.h>
#include <SDStm.h>

Sd2Card card;
SdFatFs fatFs;
Expand Down
2 changes: 1 addition & 1 deletion libraries/SD/examples/Datalogger/Datalogger.ino
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*/

#include <SD.h>
#include <SDStm.h>

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

Expand Down
2 changes: 1 addition & 1 deletion libraries/SD/examples/DumpFile/DumpFile.ino
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*/

#include <SD.h>
#include <SDStm.h>

void setup()
{
Expand Down
2 changes: 1 addition & 1 deletion libraries/SD/examples/Files/Files.ino
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
This example code is in the public domain.
*/
#include <SD.h>
#include <SDStm.h>

File myFile;

Expand Down
2 changes: 1 addition & 1 deletion libraries/SD/examples/Full/Full.ino
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <SD.h>
#include <SDStm.h>

#define COUNTOF(__BUFFER__) (sizeof(__BUFFER__) / sizeof(*(__BUFFER__)))
#define BUFFERSIZE (COUNTOF(wtext) -1)
Expand Down
2 changes: 1 addition & 1 deletion libraries/SD/examples/ReadWrite/ReadWrite.ino
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*/

#include <SD.h>
#include <SDStm.h>

File myFile;

Expand Down
2 changes: 1 addition & 1 deletion libraries/SD/examples/listfiles/listfiles.ino
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
This example code is in the public domain.
*/
#include <SD.h>
#include <SDStm.h>

File root;

Expand Down
4 changes: 2 additions & 2 deletions libraries/SD/src/SD.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
This library provides four key benefits:
* Including `SD.h` automatically creates a global
* Including `SDStm.h` automatically creates a global
`SD` object which can be interacted with in a similar
manner to other standard global objects like `Serial` and `Ethernet`.
Expand Down Expand Up @@ -57,7 +57,7 @@ extern "C" {
#include "stm32_def.h"
}
#include "assert.h"
#include "SD.h"
#include "SDStm.h"
SDClass SD;

/**
Expand Down
File renamed without changes.

0 comments on commit c0e040b

Please sign in to comment.