summaryrefslogtreecommitdiff
path: root/src/drivers/ao_sdcard.h
Commit message (Collapse)AuthorAge
* Switch from GPLv2 to GPLv2+Keith Packard2016-07-12
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Delay while waking up SD card a bitKeith Packard2013-04-12
| | | | | | | | This seems to make bringing the card from idle to ready mode more reliable. If you spam the card with requests, it will eventually whinge and shut down communications. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Shorten SD initialization timeouts.Keith Packard2013-04-02
| | | | | | This makes failure when no card is present much quicker. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Retry SD card I/O. Use time for timeouts instead of countsKeith Packard2013-04-01
| | | | | | | | | | Sometimes I/O operations may fail; give the card a chance and retry the operation in case it works the next time. Replace the loop counts with loops that check the clock so that they'll have consistent timeouts even if the CPU or SPI speed changes. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Increase SD card timeout at startup timeKeith Packard2013-03-31
| | | | | | | Sometimes the SD card takes 'a while' to go into idle mode at first power up. Just hang around waiting for a long time. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add sdcard read/write tracingKeith Packard2013-03-31
| | | | | | This just dumps info in trace mode about read and write commands Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add SD card writing functionKeith Packard2013-03-31
| | | | | | | Now that the FAT code seems to be operational, go back and add SD writing. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add SDCARD and FAT16 filesystem supportKeith Packard2013-03-27
This adds a fairly primitive FAT16 file system implementation along with support for SD cards. Signed-off-by: Keith Packard <keithp@keithp.com>