Revert "stm32: Fix compilation with newer STM BSPs"

This reverts commit af2f8a5ab8 as it
breaks the build with the STM32H7 BSP. This needs to be solved
differently.
This commit is contained in:
Simon Hausmann 2025-02-08 23:18:08 +01:00
parent 2567880db8
commit a8909dfbfa

View file

@ -162,18 +162,10 @@ struct StmSlintPlatform : public slint::platform::Platform
SCB_CleanDCache_by_Addr((uint32_t *)buffer1.data(), buffer1.size());
#if defined(BSP_LCD_Relaod)
BSP_LCD_Relaod(0, BSP_LCD_RELOAD_NONE);
#else
BSP_LCD_Reload(0, BSP_LCD_RELOAD_NONE);
#endif
BSP_LCD_SetLayerAddress(0, 0, uintptr_t(buffer1.data()));
screen_ready = false;
#if defined(BSP_LCD_Relaod)
BSP_LCD_Relaod(0, BSP_LCD_RELOAD_VERTICAL_BLANKING);
#else
BSP_LCD_Reload(0, BSP_LCD_RELOAD_VERTICAL_BLANKING);
#endif
std::swap(buffer1, buffer2);
}