#include "ssp1.h"
#include "bio.h"
Go to the source code of this file.
|
#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) |
|
#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) |