MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / FSdCtrl_ResetDma

Function FSdCtrl_ResetDma

bsp/ft2004/libraries/bsp/ft_sd/ft_sdctrl.c:127–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125}
126
127void FSdCtrl_ResetDma(FT_INOUT FtsdCtrl_t *pFtsdCtrl)
128{
129 FSdCtrl_Config_t *pConfig;
130 Ft_assertVoid(FT_NULL != pFtsdCtrl);
131 pConfig = &pFtsdCtrl->config;
132
133 Ft_setBit32((UINTPTR)(pConfig->baseAddress + SOFTWARE_RESET_REG_OFFSET), SOFTWARE_RESET_BDRST);
134 Ft_clearBit32((UINTPTR)(pConfig->baseAddress + SOFTWARE_RESET_REG_OFFSET), SOFTWARE_RESET_BDRST);
135}
136
137u32 FSdCtrl_PrepareCmdRaw(FT_IN u32 cmdIndex, FT_IN u32 rspType)
138{

Callers

nothing calls this directly

Calls 2

Ft_setBit32Function · 0.85
Ft_clearBit32Function · 0.85

Tested by

no test coverage detected