/* * $Id: sdmmc.c,v 1.1 2007/12/20 15:23:15 nbrk Exp $ */ #include #include struct sdmmc_cmdframe sdmmc_command(uint8_t cmd, uint32_t arg, uint8_t crc) { /* * Construct command frame and return it. */ struct sdmmc_cmdframe cmdframe; cmdframe.sc_cmd = CMDFRAME_CMD(cmd); cmdframe.sc_arg = arg; cmdframe.sc_crc = CMDFRAME_CRC(crc); return(cmdframe); }