DMA1 cache handling Topic is solved

Report here problems in any of ChibiOS components. This forum is NOT for support.
steved
Posts: 823
Joined: Fri Nov 09, 2012 2:22 pm
Has thanked: 12 times
Been thanked: 135 times

DMA1 cache handling  Topic is solved

Postby steved » Mon Feb 12, 2018 5:13 pm

While AFAIK none of the ST processors with DMA1 support cache, it would be helpful to include dummy functions:

Code: Select all

/**
 * Empty functions for cache control with DMA buffers - assumed there is no cache on
 * processors with DMA type 1
 */
 #define dmaBufferInvalidate(addr, size) {                                   \
  (void)(addr);                                                             \
  (void)(size);                                                             \
}
#define dmaBufferFlush(addr, size) {                                        \
  (void)(addr);                                                             \
  (void)(size);                                                             \
}

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: DMA1 cache handling

Postby Giovanni » Fri Jul 27, 2018 2:57 pm

bump

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: DMA1 cache handling

Postby Giovanni » Mon Dec 31, 2018 11:05 am

Fixed, cache function have been removed from DMA drivers, now there is an unified cache helper included by HAL.

Giovanni


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 26 guests