Check for and expose maximum (DMA) transfer size Topic is solved

Use this forum for requesting small changes in ChibiOS. Large changes should be discussed in the development forum. This forum is NOT for support.
Post Reply
faisal
Posts: 382
Joined: Wed Jul 19, 2017 12:44 am
Has thanked: 45 times
Been thanked: 62 times

Check for and expose maximum (DMA) transfer size

Post by faisal »

STM32 hal_spi_lld has an assert which checks that the maximum transfer size is not violated (n < 65536). Other drivers that use DMA also have this limitation, but this condition is not being checked. Additionally, it would be useful to remove that magic number and instead expose that as a #define so that the application can use it to split up transfers in blocks when needed.
User avatar
Giovanni
Site Admin
Posts: 14892
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: Check for and expose maximum (DMA) transfer size

Post by Giovanni »

Hi,

STM32 DMA drivers now export an STM32_DMA_MAX_TRANSFER definition. Removed the constant from all SPI drivers.

Currently in trunk but will be ported back to 21.11.3.

Giovanni
Post Reply