Pages: [1]   Go Down
Author Topic: New SdFat Beta with support for multiple SD cards  (Read 1090 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Edison Member
*
Karma: 64
Posts: 1635
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I have posted SdFatBeta20110810 here http://code.google.com/p/beta-lib/downloads/list.

Here are the main changes:
Quote
Added support for multiple SD cards.

Change the name of SdFat::cwd() to SdFat::vwd() since the volume
working directory is not the current working directory with
multiple SD cards.

Added the static function SdBaseFile::cwd() to return a pointer
to the current working directory.

Added the TwoCards.pde example to demonstrate use of multiple SD cards.

Added readCSV.pde example to demonstrate iostream extractors.

Added bool SdBaseFile::timestamp(SdBaseFile* file) to copy one
file's timestamps to another file.

Improved messages in the QuickStart.pde example.

Added maximum latency test to the bench.pde example.

Rearanged class hierarchy to fix conflicts with Flash.h and other Adruino
libraries.  Print is no longer a private parent of file stream classes.

Added high speed multiple block read functions to Sd2Card.

Changes for Arduino 1.0.
Logged

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 217
Posts: 13718
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

respect!
Logged

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 538
Posts: 27089
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Can I download, unzip, move, etc, and then re-use my Sd2Fatpins.c file (name is something like that) from the July release?
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

0
Offline Offline
Edison Member
*
Karma: 64
Posts: 1635
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

CrossRoads,

The modified Sd2PinMap.h for your board should work with this version of SdFat.

In the future Sd2PinMap.h will only be needed for software SPI. 

Hardware SPI will be setup using just the avr port/bit for SPI.  For example PB7 is SCK on your ATmega1284.

I only need the processor ID to setup SS, MOSI, MISO, and SCK.

The Arduino files will only be used for chip select.

I will also produce a version of SdFat that runs without any Arduino core stuff, just what comes with WinAVR.

In the Arduino free version, chip select will be specified by port/bit like this:
Code:
  if (!sd.init("D3")) sd.initErrorHalt();

Assuming chip select is connected to PD3.
Logged

Pages: [1]   Go Up
Jump to: