[En-Nut-Discussion] Doubts about sbi_mmc.c SbiMmCardSelect() return value

Ole Reinhardt ole.reinhardt at embedded-it.de
Wed Jun 19 23:34:48 CEST 2013


Hi Uwe,

Personally I would write:

static int SbiMmCardSelect(int on)
{
    int rc = !MMC_CS_IS();

    /* MMC select is low active. */
    if (on) {
        MMC_CS_LO();
    } else {
        MMC_CS_HI();
    }	
    return rc;
}

Bye,

Ole

-- 
kernel concepts GmbH            Tel: +49-271-771091-14
Sieghuetter Hauptweg 48         Mob: +49-177-7420433
D-57072 Siegen
http://www.embedded-it.de
http://www.kernelconcepts.de


More information about the En-Nut-Discussion mailing list