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

Function rthw_sdctrl_send_command

bsp/ft2004/drivers/drv_sdctrl.c:205–222  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

203}
204
205static void rthw_sdctrl_send_command(ft_sdctrl_class_t *class_p, struct mmcsd_pkg *pkg)
206{
207 struct rt_mmcsd_cmd *cmd = pkg->cmd;
208 struct rt_mmcsd_data *data = cmd->data;
209 /* save pkg */
210 class_p->pkg = pkg;
211
212 /* config data reg */
213 if (data != RT_NULL && data->blks)
214 {
215 /* transfer config */
216 rthw_sdctrl_transfer_by_dma(class_p, pkg);
217 }
218 else
219 {
220 rthw_sdctrl_docmd(class_p, pkg);
221 }
222}
223
224/**
225 * @brief This function send sdio request.

Callers 1

rthw_sdctrl_requestFunction · 0.85

Calls 2

rthw_sdctrl_docmdFunction · 0.85

Tested by

no test coverage detected