Fix a comment
This commit is contained in:
parent
48b7631dbb
commit
b1230eb951
@ -1158,13 +1158,16 @@ int sam_dmastart(DMA_HANDLE handle, dma_callback_t callback, void *arg)
|
|||||||
|
|
||||||
if (dmach->dc_dir == DMADIR_TX)
|
if (dmach->dc_dir == DMADIR_TX)
|
||||||
{
|
{
|
||||||
/* Memory to periphery */
|
/* Memory to peripheral */
|
||||||
|
|
||||||
qosctrl = (memqos << DMAC_QOSCTRL_FQOS_SHIFT) |
|
qosctrl = (memqos << DMAC_QOSCTRL_FQOS_SHIFT) |
|
||||||
(periphqos << DMAC_QOSCTRL_DQOS_SHIFT);
|
(periphqos << DMAC_QOSCTRL_DQOS_SHIFT);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
/* Peripheral to memory */
|
||||||
|
|
||||||
|
DEBUASSERT(dmach->dc_dir == DMADIR_RX);
|
||||||
qosctrl = (periphqos << DMAC_QOSCTRL_FQOS_SHIFT) |
|
qosctrl = (periphqos << DMAC_QOSCTRL_FQOS_SHIFT) |
|
||||||
(memqos << DMAC_QOSCTRL_DQOS_SHIFT);
|
(memqos << DMAC_QOSCTRL_DQOS_SHIFT);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user