Technical Support
On-Line Manuals
RL-ARM User's Guide (MDK v4)
#include <file_config.h> BOOL BusMode ( U32 mode); /* SD/MMC Bus mode */
The function BusMode sets the bus mode of the MCI interface.
The parameter mode specifies the requested bus mode and can have the following values:
The function is part of the MCI Driver. The prototype is defined in the file File_Config.h. Developers must customize the function.
mci.BusSpeed, mci.BusWidth, mci.CheckMedia, mci.Command, mci.Delay, mci.Init, mci.ReadBlock, mci.SetDma, mci.UnInit, mci.WriteBlock
/* MCI Device Driver Control Block */ MCI_DRV mci0_drv = { Init, UnInit, Delay, BusMode, BusWidth, BusSpeed, Command, ReadBlock, WriteBlock, NULL, CheckMedia /* Can be NULL if not existing */ }; /* Set MCI Bus mode to Open Drain or Push Pull. */ static BOOL BusMode (U32 mode) { switch (mode) { case BUS_OPEN_DRAIN: MCI_POWER |= 0x40; return (__TRUE); case BUS_PUSH_PULL: MCI_POWER &= ~0x40; return (__TRUE); } return (__FALSE); }
Cookie Settings | Terms of Use | Privacy | Accessibility | Trademarks | Contact Us | Feedback
Copyright © 2005-2019 Arm Limited (or its affiliates). All rights reserved.
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
Change Settings
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers of your data.