[BACK]Return to sdmmc.c CVS log [TXT][DIR] Up to [local] / funnyos / dev / sdmmc

Annotation of funnyos/dev/sdmmc/sdmmc.c, Revision 1.2

1.1       nbrk        1: /*
1.2     ! nbrk        2:  * $Id: sdmmc.c,v 1.1 2007/12/20 15:23:15 nbrk Exp $
1.1       nbrk        3:  */
                      4: #include <sys/types.h>
                      5: #include <dev/sdmmc/sdmmcvar.h>
                      6:
                      7: struct sdmmc_cmdframe
                      8: sdmmc_command(uint8_t cmd, uint32_t arg, uint8_t crc)
                      9: {
                     10:        /*
                     11:         * Construct command frame and return it.
                     12:         */
                     13:        struct sdmmc_cmdframe cmdframe;
                     14:
                     15:        cmdframe.sc_cmd = CMDFRAME_CMD(cmd);
                     16:        cmdframe.sc_arg = arg;
1.2     ! nbrk       17:        cmdframe.sc_crc = cmd != 0 ? CMDFRAME_CRC(crc) : crc;
1.1       nbrk       18:
                     19:        return(cmdframe);
                     20: }
                     21:

CVSweb