#include "ssp1.h"
#include "bio.h"
Include dependency graph for sd_defines.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define SD_SELECT()   board_io_sd_cs()
 
#define SD_DESELECT()   board_io_sd_ds()
 
#define SD_PRESENT()   (!board_io_sd_card_cd_sig()) /* Low means card is present */
 
#define FCLK_SLOW()   ssp1_set_max_clock(1) /* Set slow SPI clock (100k-400k) */
 
#define FCLK_FAST()   ssp1_set_max_clock(24) /* Set fast SPI clock (depends on the CSD) */
 
#define xmit_spi(dat)   ssp1_exchange_byte(dat)
 
#define rcvr_spi()   ssp1_exchange_byte(0xff)
 

Macro Definition Documentation

#define FCLK_FAST ( )    ssp1_set_max_clock(24) /* Set fast SPI clock (depends on the CSD) */
#define FCLK_SLOW ( )    ssp1_set_max_clock(1) /* Set slow SPI clock (100k-400k) */
#define rcvr_spi ( )    ssp1_exchange_byte(0xff)
#define SD_DESELECT ( )    board_io_sd_ds()
#define SD_PRESENT ( )    (!board_io_sd_card_cd_sig()) /* Low means card is present */
#define SD_SELECT ( )    board_io_sd_cs()
#define xmit_spi (   dat)    ssp1_exchange_byte(dat)