Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed DirectSPI FastPWM
sd_card.h
00001 #ifndef __SD_CARD_H__ 00002 #define __SD_CARD_H__ 00003 00004 #include "sys.h" 00005 #include "DirectSPI.h" 00006 00007 #if HAVE_DIRECT_SPI 00008 extern DirectSPI spi; 00009 # define spi_read() spi.directWrite8(0xFF) 00010 # define spi_read16() spi.directWrite16(0xFFFF) 00011 #else 00012 extern SPI spi; 00013 # define spi_read() spi.write(0xFF) 00014 #endif 00015 00016 byte sd_data_byte(); 00017 void sd_init(); 00018 void sd_start_read(dword address); 00019 void sd_stop_read(); 00020 void sd_read_pulse_byte(word count1); 00021 00022 #endif 00023
Generated on Sun Jul 17 2022 17:49:00 by
