Skip to content

Commit

Permalink
stm32: Fix compilation with newer STM BSPs
Browse files Browse the repository at this point in the history
Neither the BSP_LCD_Relaod typo nor the legacy #define is present in newer BSPs anymore.
  • Loading branch information
tronical committed Feb 7, 2025
1 parent 5b241e4 commit af2f8a5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions api/cpp/include/slint-stm32.h
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,18 @@ 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);
}
Expand Down

0 comments on commit af2f8a5

Please sign in to comment.