You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

432 lines
11KB

  1. 01 Feb 2015
  2. Code cleanup and re-factor.
  3. 04 Dec 2014
  4. Added support for Long File Names.
  5. 14 Nov 2014
  6. Replaced the core SdFat code with FatLib, a generic FAT12/FAT16/FAT32
  7. library. This may result in bugs and backward compatibility problems.
  8. Added SdFatSoftSpi, software SPI template class.
  9. Allow simultaneous use of hardware and software SPI with multiple cards.
  10. See the ThreeCard example.
  11. Added minimal Long File Name support. See the LongFileName example.
  12. 25 Oct 2014
  13. Added File class for compatibility with the Arduino SD.h library
  14. Added StreamParseInt example.
  15. 23 Oct 2014
  16. Added Read SD OCR register.
  17. SdInfo example now prints OCR register.
  18. 05 Sep 2014
  19. Faster SdBaseFile::printField();
  20. Added SdBaseFile::printField(float value, char term, uint8_t prec);
  21. 24 Aug 2014
  22. Added support for Software SPI on Due and Teensy 3.1
  23. Added support for SPI transactions.
  24. 05 Aug 2014
  25. New examples.
  26. Teensy 3.x SPI mods.
  27. Test version of StdioStream.
  28. 25 Dec 2013
  29. Improved cluster allocation speed.
  30. Fix for Teensy 3.0
  31. 21 Jun 2013
  32. Improved speed of single block write.
  33. Added StressTest example.
  34. 04 May 2013
  35. Fix FreeRam() for 1.05/1.53 malloc.
  36. Reorganised SPI code.
  37. SPI speed set by SCK divisor.
  38. Faster directory search in file open.
  39. Removed deprecated functions.
  40. 13 Mar 2013
  41. Fix for 1.0.4 malloc
  42. New Software SPI
  43. 07 Feb 2013
  44. Patch for 1.5.2 version of malloc.
  45. Updated SPI driver for Teensy 3.0
  46. Added fast printField() functions.
  47. 19 Dec 2012
  48. Fixed SoftSPI bug
  49. 01 Dec 2012
  50. Added support for the Arduino Due.
  51. The default for ALLOW_DEPRECATED_FUNCTIONS has been changed to
  52. false. If you get compile errors for these functions, either
  53. change to the preferred replacement function indicated in the
  54. error message or set ALLOW_DEPRECATED_FUNCTIONS nonzero.
  55. A key change was to remove sd.init(spiRateID, chipSelect) in favor of
  56. sd.begin(chipSelect, spiRateID). The difference between these two is
  57. the order of the arguments which has caused serious confusion at times.
  58. A massive number of internal changes have been made. There are over 2600
  59. lines in the diff file of this version and the 20120719 version.
  60. 20 Oct 2012
  61. Changes to support ARM processors. Tested with a Teensy 3.0.
  62. Changes for higher performance with large reads and writes.
  63. 25 Aug 2012
  64. Added uint32_t available();
  65. Support for new industrial SD cards
  66. Better support for MiniSerial and MiniSerial example
  67. Changes to support newer versions of avr-gcc
  68. Changed RawWrite example to use micros() for delay between blocks.
  69. Changed SdFatSize example to use MiniSerial
  70. 19 Jul 2012
  71. Require Arduino 1.0 or greater. Change file type for all examples to *.ino.
  72. Modify the SdFormatter example to format SDXC cards as FAT32. This is not the
  73. SDXC standard which is exFAT.
  74. 30 May 2012
  75. Added << operator for Arduino flash string macro F().
  76. New RawWrite example for fast write of contiguous files.
  77. New faster software SPI
  78. Software SPI for Leonardo boards
  79. Don't use __cxa_pure_virtual by default for Arduino 1.0 or greater.
  80. 26 Mar 2012
  81. Removed definition for SS_PIN, MISO_PIN, MOSI_PIN, and SCK_PIN. Used the
  82. Arduino 1.0 symbols SS, MISO, MOSI, and SCK.
  83. Added Arduino style SdFat::begin(chipSelect, spiSpeed);
  84. Added options for SD crc checking. Enabling crc checking increases reliability
  85. at the cost of speed. Edit SdFatConfig.h to select CRC options.
  86. Override Print::getWriteError() and Print::clearWriteError() to use
  87. SdBaseFile functions.
  88. Many internal changes.
  89. 08 Jan 2012
  90. Changes to allow use of the SerialPort library.
  91. Error messages and output from programs are now sent to a stdOut Print
  92. stream.
  93. The default stdOut is a small non-interrupt driven class that outputs messages
  94. to serial port zero. This allows an alternate Serial library like SerialPort
  95. to be used with SdFat.
  96. You can redirect stdOut with SdFat::setStdOut(Print* stream) and
  97. get the current stdOut stream with SdFat::stdOut().
  98. If USE_SERIAL_FOR_STD_OUT in SdFatConfig.h is nonzero, the Arduino Serial
  99. object will be used as the default for stdOut.
  100. 05 Dec 2011
  101. Changes for Arduino 1.0
  102. 17 Sep 2011
  103. Changes for Arduino 1.0 beta 4
  104. Improved SPI handling
  105. 02 Sep 2011
  106. --------------------------------------------------------------------------------
  107. Warning:
  108. Several changes are not backward compatible with the previous
  109. version of SdFat.
  110. The function cwd() was renamed vwd() to allow multiple SD cards.
  111. The type SdBaseFile was added to the class hierarchy to avoid conflicts with
  112. other Arduino libraries that are derived from the Print class. Directory
  113. files should be declared type SdBaseFile.
  114. --------------------------------------------------------------------------------
  115. Added support for multiple SD cards.
  116. Change the name of SdFat::cwd() to SdFat::vwd() since the volume
  117. working directory is not the current working directory with
  118. multiple SD cards.
  119. Added the static function SdBaseFile::cwd() to return a pointer
  120. to the current working directory.
  121. Added the TwoCards.pde example to demonstrate use of multiple SD cards.
  122. Added readCSV.pde example to demonstrate iostream extractors.
  123. Added bool SdBaseFile::timestamp(SdBaseFile* file) to copy one
  124. file's timestamps to another file.
  125. Improved messages in the QuickStart.pde example.
  126. Added maximum latency test to the bench.pde example.
  127. Rearanged class hierarchy to fix conflicts with Flash.h and other Adruino
  128. libraries. Print is no longer a private parent of file stream classes.
  129. Added high speed multiple block read functions to Sd2Card.
  130. Changed include files in SdFatUtil.h
  131. Removed option to write protect block zero of an SD card.
  132. Changes for Arduino 1.0.
  133. 02 Jul 2011
  134. This is a major update based on previous beta versions.
  135. Read all changes since 10 Oct 2001
  136. Simplified examples in extra/examplesV1
  137. 28 Jun 2011
  138. This is a release candidate to replace sdfatlib20101010.
  139. Initialize SPI bus before every access.
  140. Improved write multiple block functions for fast data logging.
  141. SdVolume::cacheClear() returns zero if it fails.
  142. Documentation changes.
  143. 04 Jun 2011
  144. Added SdFatTestSuite and fixed bugs found by test programs.
  145. Added functions:
  146. bool SdFat::truncate(const char* path, uint32_t length);
  147. int16_t SdFile::fgets(char* str, int16_t num, char* delim);
  148. 11 May 2011
  149. Added QuickStart sketch and QuickStart.txt file for fast hardware test.
  150. Added several new examples.
  151. Version of ls() that can write to any Print object.
  152. New functions including freeClusterCount(), openNext() rename().
  153. 14 Apr 2011
  154. Total rewrite to add iostreams and SdFat class with current working directory.
  155. Old API maintained for backward compatibility.
  156. 27 Nov 2010
  157. Added experimental support for FAT12. This can be enabled by setting
  158. FAT12_SUPPORT nonzero in SdFatConfig.h.
  159. Added an experimental sketch, SdFatFormatter.pde, to format SD cards as
  160. FAT16 and SDHC cards as FAT32. See SdFat/examples/SdFormatter.
  161. The return type of SdVolume::cacheClear was changed to cache_t*.
  162. Many internal changes to support FAT12 and formatting SD/SDHC cards.
  163. 10 Oct 2010
  164. Added Mega 2560.
  165. Fixed rmRfStar() bug.
  166. Fixed Sanguino NULL definition.
  167. 18 Aug 2010
  168. Optimized write() for append at end of file. Up to 50% faster sequential write.
  169. 13 Aug 2010
  170. Added the following function to allow the SD chip select pin to be set
  171. at runtime. Warning - if the hardware SS pin is not used as chip select,
  172. the hardware SS pin will be set to output mode by init(). An avr processor
  173. will not function as an SPI master unless SS is set to output mode.
  174. uint8_t Sd2Card::init(uint8_t sckRateID, uint8_t chipSelectPin);
  175. Added more SPI clock rate choices. The above init() function and
  176. uint8_t Sd2Card::init(uint8_t sckRateID) call the new function
  177. uint8_t Sd2Card::setSckRate(uint8_t sckRateID).
  178. setSckRate() sets the SPI clock rate to F_CPU/pow(2, 1 + sckRateID).
  179. On an 16 MHz cpu this ranges from 8 MHz for sckRateId = 0 to 125 kHz
  180. for sckRateID = 6. This function must be called after the init() call.
  181. Modified most examples to call card.init(SPI_HALF_SPEED) to avoid SPI bus
  182. errors with breadboards and jumpers. This sets the SPI speed to F_CPU/4.
  183. Defined SPI_FULL_SPEED so init(SPI_FULL_SPEED) sets the SPI speed to F_CPU/2.
  184. Added the following function to cancel date/time callback. This function
  185. must now be used instead of dateTimeCallback(NULL).
  186. static void SdFat::dateTimeCallbackCancel(void);
  187. The following member functions have been added for users who wish to avoid
  188. calls to functions with non-const references.
  189. uint8_t SdFile::contiguousRange(uint32_t* bgnBlock, uint32_t* endBlock);
  190. uint8_t SdFile::createContiguous(SdFile* dirFile,
  191. const char* fileName, uint32_t size);
  192. static void SdFile::dateTimeCallback(
  193. void (*dateTime)(uint16_t* date, uint16_t* time));
  194. uint8_t SdFile::dirEntry(dir_t* dir);
  195. uint8_t SdFile::makeDir(SdFile* dir, const char* dirName);
  196. uint8_t SdFile::open(SdFile* dirFile, const char* fileName, uint8_t oflag);
  197. uint8_t SdFile::open(SdFile* dirFile, const char* fileName);
  198. uint8_t SdFile::open(SdFile* dirFile, uint16_t index, uint8_t oflag);
  199. uint8_t SdFile::openRoot(SdVolume* vol);
  200. int8_t SdFile::readDir(dir_t* dir);
  201. static uint8_t remove(SdFile* dirFile, const char* fileName);
  202. uint8_t SdVolume::init(Sd2Card* dev);
  203. uint8_t SdVolume::init(Sd2Card* dev, uint8_t part);
  204. The following member functions have been marked as deprecated since they
  205. are now wrappers for the new functions. dateTimeCallback is the only wrapper
  206. with extra overhead. The other wrappers are squeezed out by the complier.
  207. These wrappers will be maintained in the future for backward compatibility.
  208. uint8_t SdFile::contiguousRange(uint32_t& bgnBlock, uint32_t& endBlock);
  209. uint8_t SdFile::createContiguous(SdFile& dirFile,
  210. const char* fileName, uint32_t size);
  211. static void SdFile::dateTimeCallback(
  212. void (*dateTime)(uint16_t& date, uint16_t& time));
  213. uint8_t SdFile::dirEntry(dir_t& dir);
  214. uint8_t SdFile::makeDir(SdFile& dir, const char* dirName);
  215. uint8_t SdFile::open(SdFile& dirFile, const char* fileName, uint8_t oflag);
  216. uint8_t SdFile::open(SdFile& dirFile, const char* fileName);
  217. uint8_t SdFile::open(SdFile& dirFile, uint16_t index, uint8_t oflag);
  218. uint8_t SdFile::openRoot(SdVolume& vol);
  219. int8_t SdFile::readDir(dir_t& dir);
  220. static uint8_t remove(SdFile& dirFile, const char* fileName);
  221. uint8_t SdVolume::init(Sd2Card& dev);
  222. uint8_t SdVolume::init(Sd2Card& dev, uint8_t part);
  223. The deprecated function can be disabled by editing SdFat.h and setting
  224. #define ALLOW_DEPRECATED_FUNCTIONS 0
  225. Fixed file modify time for file rewrite.
  226. Major internal cleanup/reformat based on Google cpplint.py code style.
  227. New Sd2Card::init() algorithm.
  228. New SdFatInfo sketch for modified SdReadData() and other internal changes.
  229. Modified examples to eliminate deprecated functions.
  230. 11 Jun 2010
  231. Added definitions for Teensy to ArduinoPins.h (Paul Stoffregen)
  232. Added troubleshooting.txt
  233. 23 Dec 2009
  234. Added Software SPI capability. See Sd2Card.h
  235. Defining MEGA_SOFT_SPI allows an unmodified Adafruit GPS Shield to be used
  236. on Mega Arduinos. Software SPI works well with GPS Shield V1.1
  237. but many SD cards will fail with GPS Shield V1.0.
  238. Added file ArduinoPins.h for pin definitions.
  239. More error printout in examples.
  240. 25 Nov 2009
  241. Added new functions for SdFile class:
  242. dateTimeCallback(), dirEntry(), isRoot(), isSubDir, ls(),
  243. makeDir(), printDirName(), printFatDate(), printFatTime(),
  244. printTwoDigits(), rmDir(), and rmRStar().
  245. Added new examples to test and illustrate use of new functions.
  246. Removed sdCard() from SdFile class.
  247. Fixed several bugs.
  248. 12 Nov 2009
  249. Major rewrite of the version of SdFat that was included with
  250. the WaveRP library.
  251. This is a preview that is being released to obtain comments
  252. from several colleagues and future users.