mirror of
https://github.com/apache/nuttx.git
synced 2026-09-20 21:06:58 +08:00
Merged in david_s5/nuttx/upstream_sdio_1bit_dma (pull request #188)
Allow dma in 1 bit mode in STM32F4xxx
This commit is contained in:
@@ -2578,12 +2578,14 @@ static int stm32_dmapreflight(FAR struct sdio_dev_s *dev,
|
||||
|
||||
DEBUGASSERT(priv != NULL && buffer != NULL && buflen > 0);
|
||||
|
||||
#if !defined(CONFIG_STM32_STM32F40XX)
|
||||
/* Wide bus operation is required for DMA */
|
||||
|
||||
if (!priv->widebus)
|
||||
{
|
||||
return -EINVAL;
|
||||
}
|
||||
#endif
|
||||
|
||||
/* DMA must be possible to the buffer */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user