Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

448 lines
12KB

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