2023-08-30 16:21:18 +08:00
|
|
|
/*
|
|
|
|
|
* Copyright (C) 2022-2023 ArtinChip Technology Co., Ltd.
|
|
|
|
|
* Authors: Ning Fang <ning.fang@artinchip.com>
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#include "lvgl.h"
|
|
|
|
|
#include "aic_ui.h"
|
|
|
|
|
#include "aic_osal.h"
|
|
|
|
|
|
2024-04-03 16:40:57 +08:00
|
|
|
// #define AIC_LVGL_QC_TEST_DEMO
|
|
|
|
|
|
2023-08-30 16:21:18 +08:00
|
|
|
void aic_ui_init()
|
|
|
|
|
{
|
2024-04-03 16:40:57 +08:00
|
|
|
/* qc test demo is only for aic internal qc testing, please ignore it. */
|
|
|
|
|
#ifdef AIC_LVGL_QC_TEST_DEMO
|
|
|
|
|
extern void qc_test_init();
|
|
|
|
|
qc_test_init();
|
|
|
|
|
return;
|
|
|
|
|
#endif
|
|
|
|
|
|
2023-08-30 16:21:18 +08:00
|
|
|
#ifdef AIC_LVGL_BASE_DEMO
|
|
|
|
|
#include "base_ui.h"
|
|
|
|
|
base_ui_init();
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#ifdef AIC_LVGL_METER_DEMO
|
|
|
|
|
#include "meter_ui.h"
|
|
|
|
|
meter_ui_init();
|
|
|
|
|
#endif
|
|
|
|
|
|
2024-01-27 08:47:24 +08:00
|
|
|
#ifdef AIC_LVGL_LAUNCHER_DEMO
|
|
|
|
|
extern void launcher_ui_init();
|
|
|
|
|
launcher_ui_init();
|
|
|
|
|
#endif
|
|
|
|
|
|
2023-08-30 16:21:18 +08:00
|
|
|
#ifdef AIC_LVGL_MUSIC_DEMO
|
|
|
|
|
extern void lv_demo_music(void);
|
|
|
|
|
lv_demo_music();
|
|
|
|
|
#endif
|
2024-01-27 08:47:24 +08:00
|
|
|
|
2024-04-03 16:40:57 +08:00
|
|
|
#ifdef AIC_LVGL_DASHBOARD_DEMO
|
|
|
|
|
extern void dashboard_ui_init(void);
|
|
|
|
|
dashboard_ui_init();
|
|
|
|
|
#endif
|
2023-08-30 16:21:18 +08:00
|
|
|
return;
|
|
|
|
|
}
|