/*! * \brief Initialize MMC hardware interface. * * This function is automatically executed during during device * registration via NutRegisterDevice(). * * \param dev Identifies the device to initialize. */ static int At91MciInit(NUTDEVICE * dev) { /* Initialize the MCI hardware. */ At91MciReset(1); return 0; }
/*! * \brief Initialize MMC hardware interface. * * This function is automatically executed during during device * registration via NutRegisterDevice(). * * \param dev Identifies the device to initialize. */ static int At91MciInit(NUTDEVICE * dev) { /* Disable PIO lines used for MCI. */ outr(PIOA_PDR, MMC_PINS_A | MMC_PINS_B); /* Enable peripherals. */ outr(PIOA_ASR, MMC_PINS_A); outr(PIOA_BSR, MMC_PINS_B); /* Initialize the MCI hardware. */ At91MciReset(1); return 0; }