Skip to content

Commit

Permalink
A no Arduino version of the latest SdFat library
Browse files Browse the repository at this point in the history
This is based off the ZuluSCSI custom SdFat library used with GD32
MCUs. It uses the latest changes to the SDFat library along with
GPT compatibility.

It uses the define flag SDFAT_NOARDUINO to disable use of Arduino
libraries.
  • Loading branch information
morio committed Oct 3, 2024
1 parent c4e5e6d commit 1c6a440
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/SdFatConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,20 @@
#define DESTRUCTOR_CLOSES_FILE 0
#endif // DESTRUCTOR_CLOSES_FILE
//------------------------------------------------------------------------------

#ifdef SDFAT_NOARDUINO
#define ENABLE_ARDUINO_FEATURES 0
#define ENABLE_ARDUINO_SERIAL 0
#define ENABLE_ARDUINO_STRING 0
#define SS 0
extern "C" unsigned long millis();
#else
/** For Debug - must be one */
#define ENABLE_ARDUINO_FEATURES 1
/** For Debug - must be one */
#define ENABLE_ARDUINO_SERIAL 1
/** For Debug - must be one */
#define ENABLE_ARDUINO_STRING 1
#endif // SDFAT_NOARDUINO
//------------------------------------------------------------------------------
#if ENABLE_ARDUINO_FEATURES
#include "Arduino.h"
Expand Down

0 comments on commit 1c6a440

Please sign in to comment.