mirror of
https://github.com/apache/nuttx.git
synced 2026-06-01 07:45:16 +08:00
Merged in hardlulz/modem-3.0-nuttx/fix-stm32_dmacapable-on-f20xx (pull request #522)
Fix stm32 dmacapable on f20xx * Fixed build for STM32F20XX platforms when CONFIG_STM32_DMACAPABLE is enabled * Fixed build for STM32F20XX platforms when CONFIG_STM32_DMACAPABLE is enabled Approved-by: Gregory Nutt <gnutt@nuttx.org>
This commit is contained in:
committed by
Gregory Nutt
parent
73082f7513
commit
ef1ca963a5
@@ -877,7 +877,7 @@ bool stm32_dmacapable(uint32_t maddr, uint32_t count, uint32_t ccr)
|
|||||||
* multiply.
|
* multiply.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
switch (ccr & STM32_DMA_SCR_MSIZE_MASK)
|
switch (ccr & DMA_SCR_MSIZE_MASK)
|
||||||
{
|
{
|
||||||
case DMA_SCR_MSIZE_8BITS:
|
case DMA_SCR_MSIZE_8BITS:
|
||||||
transfer_size = 1;
|
transfer_size = 1;
|
||||||
@@ -894,7 +894,7 @@ bool stm32_dmacapable(uint32_t maddr, uint32_t count, uint32_t ccr)
|
|||||||
mend = maddr + (count << 2) - 1;
|
mend = maddr + (count << 2) - 1;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default
|
default:
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -912,7 +912,7 @@ bool stm32_dmacapable(uint32_t maddr, uint32_t count, uint32_t ccr)
|
|||||||
* is aligned to the burst length.
|
* is aligned to the burst length.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
switch (ccr & STM32_DMA_SCR_MBURST_MASK)
|
switch (ccr & DMA_SCR_MBURST_MASK)
|
||||||
{
|
{
|
||||||
case DMA_SCR_MBURST_SINGLE:
|
case DMA_SCR_MBURST_SINGLE:
|
||||||
burst_length = transfer_size;
|
burst_length = transfer_size;
|
||||||
|
|||||||
Reference in New Issue
Block a user