bdma dmav2 inconsistency for setMemory0/1 Topic is solved

Report here problems in any of ChibiOS components. This forum is NOT for support.
User avatar
alex31
Posts: 379
Joined: Fri May 25, 2012 10:23 am
Location: toulouse, france
Has thanked: 38 times
Been thanked: 62 times
Contact:

bdma dmav2 inconsistency for setMemory0/1  Topic is solved

Postby alex31 » Tue Apr 27, 2021 6:37 pm

Hello,

In DMAv2 module, there is dmaStreamSetMemory0 and dmaStreamSetMemory1 which is useful to implement double buffer.

BDMAv1 is also double buffer capable, but there is only a bdmaStreamSetMemory macro which update CM0AR (although in stm32_bdma.h
bdmaStreamSetMemory0 is used in a macro)

To be able to use double buffer with BDMAv1, and for consistency with DMAv2 could bdmaStreamSetMemory be renamed in bdmaStreamSetMemory0 and bdmaStreamSetMemory1 defined ?

Thanks
Alexandre

User avatar
Giovanni
Site Admin
Posts: 14455
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

Re: bdma dmav2 inconsistency for setMemory0/1

Postby Giovanni » Tue Apr 27, 2021 6:40 pm

Moving this in "bug reports".

Giovanni

User avatar
alex31
Posts: 379
Joined: Fri May 25, 2012 10:23 am
Location: toulouse, france
Has thanked: 38 times
Been thanked: 62 times
Contact:

Re: bdma dmav2 inconsistency for setMemory0/1

Postby alex31 » Tue Apr 27, 2021 6:47 pm

I join a patch proposal.

Alexandre
Attachments
dbmasetmemory01.patch.zip
(1.39 KiB) Downloaded 115 times

User avatar
Giovanni
Site Admin
Posts: 14455
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

Re: bdma dmav2 inconsistency for setMemory0/1

Postby Giovanni » Sat Aug 21, 2021 7:25 am

Hi,

Macro added to trunk plus an alias for backward compatibility.

Giovanni


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 8 guests