2023-08-30 16:21:18 +08:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2006-2021, RT-Thread Development Team
|
|
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
*
|
|
|
|
|
* Change Logs:
|
|
|
|
|
* Date Author Notes
|
|
|
|
|
* 2021-10-17 Meco Man First version
|
|
|
|
|
*/
|
|
|
|
|
#include <lvgl.h>
|
2023-11-09 20:19:51 +08:00
|
|
|
#ifdef KERNEL_RTTHREAD
|
2023-08-30 16:21:18 +08:00
|
|
|
#include <rtthread.h>
|
2023-11-09 20:19:51 +08:00
|
|
|
#endif
|
2023-08-30 16:21:18 +08:00
|
|
|
#include "aic_core.h"
|
|
|
|
|
#include "aic_osal.h"
|
|
|
|
|
#include "aic_ui.h"
|
|
|
|
|
#include <dfs_fs.h>
|
2023-11-30 19:48:02 +08:00
|
|
|
#include "aic_time.h"
|
2023-08-30 16:21:18 +08:00
|
|
|
|
2024-10-30 16:50:31 +08:00
|
|
|
void lv_wait_sdcard_mounted(void)
|
2023-08-30 16:21:18 +08:00
|
|
|
{
|
2023-11-30 19:48:02 +08:00
|
|
|
if (!strcmp(LVGL_STORAGE_PATH, "/sdcard")) {
|
|
|
|
|
aicos_msleep(1000);
|
|
|
|
|
}
|
2024-10-30 16:50:31 +08:00
|
|
|
}
|
2023-11-30 19:48:02 +08:00
|
|
|
|
2024-10-30 16:50:31 +08:00
|
|
|
void lv_user_gui_init(void)
|
|
|
|
|
{
|
2025-01-08 19:12:06 +08:00
|
|
|
#ifdef AIC_LVGL_DEMO
|
2023-08-30 16:21:18 +08:00
|
|
|
aic_ui_init();
|
2025-01-08 19:12:06 +08:00
|
|
|
#endif
|
2023-08-30 16:21:18 +08:00
|
|
|
}
|
|
|
|
|
|
2023-11-09 20:19:51 +08:00
|
|
|
#ifdef KERNEL_RTTHREAD
|
2023-08-30 16:21:18 +08:00
|
|
|
extern int lvgl_thread_init(void);
|
|
|
|
|
|
2024-09-03 11:16:08 +08:00
|
|
|
INIT_LATE_APP_EXPORT(lvgl_thread_init);
|
|
|
|
|
|
2023-11-09 20:19:51 +08:00
|
|
|
#endif
|