HAL_ChibiOS: fixed cache flush for updated ChibiOS version

This commit is contained in:
Andrew Tridgell 2018-06-09 11:08:40 +10:00
parent 2604b00b43
commit f8e2edbc7f

View File

@ -101,7 +101,7 @@ void show_stack_usage(void)
void memory_flush_all(void) void memory_flush_all(void)
{ {
#if defined(STM32F7) && STM32_DMA_CACHE_HANDLING == TRUE #if defined(STM32F7) && STM32_DMA_CACHE_HANDLING == TRUE
dmaBufferFlush(HAL_RAM_BASE_ADDRESS, HAL_RAM_SIZE_KB * 1024U); cacheBufferFlush(HAL_RAM_BASE_ADDRESS, HAL_RAM_SIZE_KB * 1024U);
#endif #endif
} }