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.
faisal
Posts: 374
Joined: Wed Jul 19, 2017 12:44 am
Has thanked: 44 times
Been thanked: 60 times

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

Postby faisal » Thu Oct 13, 2022 5:26 pm

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: 14444
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1074 times
Been thanked: 921 times
Contact:

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

Postby Giovanni » Sun Nov 20, 2022 10:36 am

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


Return to “Small Change Requests”

Who is online

Users browsing this forum: No registered users and 15 guests