mirror of
https://github.com/No-Chicken/Power-Pico.git
synced 2026-04-03 13:02:36 +08:00
加入等待
This commit is contained in:
@@ -71,6 +71,8 @@ void HAL_SPI_TxCpltCallback(SPI_HandleTypeDef *hspi)
|
|||||||
{
|
{
|
||||||
if (hspi->Instance == SPI2)
|
if (hspi->Instance == SPI2)
|
||||||
{
|
{
|
||||||
|
// 确保最后一位数据离开 STM32 的移位寄存器
|
||||||
|
while (hspi->Instance->SR & SPI_FLAG_BSY);
|
||||||
// 通知 LVGL 渲染结束,执行回调函数
|
// 通知 LVGL 渲染结束,执行回调函数
|
||||||
if (lcd_ready_cb) {
|
if (lcd_ready_cb) {
|
||||||
LCD_CallbackFunc_t func = (LCD_CallbackFunc_t)lcd_ready_cb;
|
LCD_CallbackFunc_t func = (LCD_CallbackFunc_t)lcd_ready_cb;
|
||||||
|
|||||||
Reference in New Issue
Block a user