File nut/arch/cm3/dev/nxp/lpc177x_8x_mmcard_sdio.c

References Functions: Lpc177x_8x_MmcardBlockRead() nut/arch/cm3/dev/nxp/lpc177x_8x_mmcard_sdio.c
  Lpc177x_8x_MmcardBlockWrite() nut/arch/cm3/dev/nxp/lpc177x_8x_mmcard_sdio.c
  Lpc177x_8x_MmcardIOCtl() nut/arch/cm3/dev/nxp/lpc177x_8x_mmcard_sdio.c
  Lpc177x_8x_MmcardInit() nut/arch/cm3/dev/nxp/lpc177x_8x_mmcard_sdio.c
  Lpc177x_8x_MmcardMount() nut/arch/cm3/dev/nxp/lpc177x_8x_mmcard_sdio.c
  Lpc177x_8x_MmcardUnmount() nut/arch/cm3/dev/nxp/lpc177x_8x_mmcard_sdio.c
References Variables: mci0_ifc nut/arch/cm3/dev/nxp/lpc177x_8x_mmcard_sdio.c

Included Files


Preprocessor definitions

#define MBR_P_TABLE_PRESENT 0

#define MBR_P_TABLE_NOT_PRESENT 1


Typedef MCIFC

typedef struct _MCIFC MCIFC
struct _MCIFC  
   {  
      uint32_t ifc_config;  
      uint32_t ifc_opcond;  
      uint32_t ifc_reladdr;  
      uint8_t* ifc_buff;  
      uint32_t ifc_csd[4];  
      uint8_t ifc_admode;  
   }  

Typedef MMCFCB

typedef struct _MMCFCB MMCFCB
struct _MMCFCB  
   {  
      NUTDEVICE* fcb_fsdev;  
      DOSPART fcb_part;  
      uint32_t fcb_blknum;  
      u_char fcb_blkbuf[512];  
   }  

Global Variable devLpcMci0

NUTDEVICE devLpcMci0
Visible in:   nut/arch/cm3/dev/nxp/lpc177x_8x_mmcard_sdio.c

Local Variables

mutex
static HANDLE mutex
Used in: Lpc177x_8x_MmcardMount()  
  Lpc177x_8x_MmcardReadData()  
  Lpc177x_8x_MmcardWriteData()  

mci0_ifc
static MCIFC mci0_ifc

Used in:   nut/arch/cm3/dev/nxp/lpc177x_8x_mmcard_sdio.c
  Lpc177x_8x_MmcardIOCtl()  

cidval
static st_Mci_CardId cidval

Used in: Lpc177x_8x_MmcardIOCtl()  
  Lpc177x_8x_MmcardInit()  

Local Function Lpc177x_8x_MmcardBlockRead()

static int Lpc177x_8x_MmcardBlockRead ( NUTFILE* nfp, void* buffer, int num )
Calls: Lpc177x_8x_MmcardReadData() nut/arch/cm3/dev/nxp/lpc177x_8x_mmcard_sdio.c
Used in:   nut/arch/cm3/dev/nxp/lpc177x_8x_mmcard_sdio.c

Local Function Lpc177x_8x_MmcardBlockWrite()

static int Lpc177x_8x_MmcardBlockWrite ( NUTFILE* nfp, const void* buffer, int num )
Calls: Lpc177x_8x_MmcardWriteData() nut/arch/cm3/dev/nxp/lpc177x_8x_mmcard_sdio.c
Used in:   nut/arch/cm3/dev/nxp/lpc177x_8x_mmcard_sdio.c

Local Function Lpc177x_8x_MmcardIOCtl()

static int Lpc177x_8x_MmcardIOCtl ( NUTDEVICE* dev, int req, void* conf )
Calls: Lpc177x_8x_MciGetCardStatus() nut/arch/cm3/dev/nxp/lpc177x_8x_mci.c
  memcpy()
Used in:   nut/arch/cm3/dev/nxp/lpc177x_8x_mmcard_sdio.c
References Variables: cidval nut/arch/cm3/dev/nxp/lpc177x_8x_mmcard_sdio.c
  mci0_ifc nut/arch/cm3/dev/nxp/lpc177x_8x_mmcard_sdio.c

Local Function Lpc177x_8x_MmcardInit()

static int Lpc177x_8x_MmcardInit ( NUTDEVICE* dev )
Calls: Lpc177x_8x_MciCmd_SelectCard() nut/arch/cm3/dev/nxp/lpc177x_8x_mci.c
  Lpc177x_8x_MciGetCID() nut/arch/cm3/dev/nxp/lpc177x_8x_mci.c
  Lpc177x_8x_MciGetCSD() nut/arch/cm3/dev/nxp/lpc177x_8x_mci.c
  Lpc177x_8x_MciGetCardAddress() nut/arch/cm3/dev/nxp/lpc177x_8x_mci.c
  Lpc177x_8x_MciGetCardType() nut/arch/cm3/dev/nxp/lpc177x_8x_mci.c
  Lpc177x_8x_MciInit() nut/arch/cm3/dev/nxp/lpc177x_8x_mci.c
  Lpc177x_8x_MciSetBlockLen() nut/arch/cm3/dev/nxp/lpc177x_8x_mci.c
  Lpc177x_8x_MciSetBusWidth() nut/arch/cm3/dev/nxp/lpc177x_8x_mci.c
  Lpc177x_8x_MciSetCardAddress() nut/arch/cm3/dev/nxp/lpc177x_8x_mci.c
  Lpc177x_8x_MciSetClock() nut/arch/cm3/dev/nxp/lpc177x_8x_mci.c
  memset()
Called by: Lpc177x_8x_MmcardMount() nut/arch/cm3/dev/nxp/lpc177x_8x_mmcard_sdio.c
Used in:   nut/arch/cm3/dev/nxp/lpc177x_8x_mmcard_sdio.c
References Variables: cidval nut/arch/cm3/dev/nxp/lpc177x_8x_mmcard_sdio.c

Local Function Lpc177x_8x_MmcardMount()

static NUTFILE* Lpc177x_8x_MmcardMount ( NUTDEVICE* dev, const char* name, int mode, int acc )
Calls: Lpc177x_8x_MmcardInit() nut/arch/cm3/dev/nxp/lpc177x_8x_mmcard_sdio.c
  Lpc177x_8x_MmcardReadData() nut/arch/cm3/dev/nxp/lpc177x_8x_mmcard_sdio.c
  Lpc177x_8x_MmcardUnmount() nut/arch/cm3/dev/nxp/lpc177x_8x_mmcard_sdio.c
  NutEventPost(), NutHeapRootAllocClear(), NutHeapRootFree(), atoi(), strcmp()
Used in:   nut/arch/cm3/dev/nxp/lpc177x_8x_mmcard_sdio.c
References Variables: mutex nut/arch/cm3/dev/nxp/lpc177x_8x_mmcard_sdio.c

Local Function Lpc177x_8x_MmcardReadData()

static uint32_t Lpc177x_8x_MmcardReadData ( uint8_t* buffer, int blk, int num )
Prototyped in: nut/arch/cm3/dev/nxp/lpc177x_8x_mmcard_sdio.c
Calls: Lpc177x_8x_MciCmd_StopTransmission() nut/arch/cm3/dev/nxp/lpc177x_8x_mci.c
  Lpc177x_8x_MciGetDataXferEndState() nut/arch/cm3/dev/nxp/lpc177x_8x_mci.c
  Lpc177x_8x_MciGetXferErrState() nut/arch/cm3/dev/nxp/lpc177x_8x_mci.c
  Lpc177x_8x_MciReadBlock() nut/arch/cm3/dev/nxp/lpc177x_8x_mci.c
  NutEventPost(), NutEventWait()
Called by: Lpc177x_8x_MmcardBlockRead() nut/arch/cm3/dev/nxp/lpc177x_8x_mmcard_sdio.c
  Lpc177x_8x_MmcardMount() nut/arch/cm3/dev/nxp/lpc177x_8x_mmcard_sdio.c
References Variables: mutex nut/arch/cm3/dev/nxp/lpc177x_8x_mmcard_sdio.c

Local Function Lpc177x_8x_MmcardUnmount()

static int Lpc177x_8x_MmcardUnmount ( NUTFILE* nfp )
Prototyped in: nut/arch/cm3/dev/nxp/lpc177x_8x_mmcard_sdio.c
Calls: NutHeapRootFree()
Called by: Lpc177x_8x_MmcardMount() nut/arch/cm3/dev/nxp/lpc177x_8x_mmcard_sdio.c
Used in:   nut/arch/cm3/dev/nxp/lpc177x_8x_mmcard_sdio.c

Local Function Lpc177x_8x_MmcardWriteData()

static uint32_t Lpc177x_8x_MmcardWriteData ( uint8_t* buffer, int blk, int num )
Prototyped in: nut/arch/cm3/dev/nxp/lpc177x_8x_mmcard_sdio.c
Calls: Lpc177x_8x_MciCmd_StopTransmission() nut/arch/cm3/dev/nxp/lpc177x_8x_mci.c
  Lpc177x_8x_MciGetDataXferEndState() nut/arch/cm3/dev/nxp/lpc177x_8x_mci.c
  Lpc177x_8x_MciGetXferErrState() nut/arch/cm3/dev/nxp/lpc177x_8x_mci.c
  Lpc177x_8x_MciWriteBlock() nut/arch/cm3/dev/nxp/lpc177x_8x_mci.c
  NutEventPost(), NutEventWait()
Called by: Lpc177x_8x_MmcardBlockWrite() nut/arch/cm3/dev/nxp/lpc177x_8x_mmcard_sdio.c
References Variables: mutex nut/arch/cm3/dev/nxp/lpc177x_8x_mmcard_sdio.c