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.

414 lines
11KB

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