初始提交卡包 USB 工程
纳入固件源码、屏幕组件、nand_xfer 工具和文档。忽略本机构建产物、sdkconfig,以及含本机路径的依赖锁。 Co-authored-by: Cursor <[email protected]>
This commit is contained in:
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* Copyright 2026 NXP
|
||||
* NXP Proprietary. This software is owned or controlled by NXP and may only be used strictly in
|
||||
* accordance with the applicable license terms. By expressly accepting such terms or by downloading, installing,
|
||||
* activating and/or otherwise using the software, you are agreeing that you have read, and that you agree to
|
||||
* comply with and are bound by, such license terms. If you do not agree to be bound by the applicable license
|
||||
* terms, then you may not retain, install, activate or otherwise use the software.
|
||||
*/
|
||||
|
||||
#ifndef WIDGET_INIT_H
|
||||
#define WIDGET_INIT_H
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include "lvgl.h"
|
||||
#include "gui_guider.h"
|
||||
#include <time.h>
|
||||
#include <sys/time.h>
|
||||
#include "esp_log.h"
|
||||
#include "freertos/FreeRTOS.h"
|
||||
#include "freertos/task.h"
|
||||
|
||||
#define CAL_TAG "SMART_CALENDAR"
|
||||
|
||||
__attribute__((unused)) void kb_event_cb(lv_event_t *e);
|
||||
__attribute__((unused)) void ta_event_cb(lv_event_t *e);
|
||||
#if LV_USE_ANALOGCLOCK != 0
|
||||
void clock_count(int *hour, int *min, int *sec);
|
||||
void digital_clock_count(int * hour, int * minute, int * seconds, char * meridiem);
|
||||
#endif
|
||||
|
||||
void screen_time_digital_clock_now_timer(lv_timer_t *timer);
|
||||
|
||||
//-------------------------------------万年历组件------------------------------------------//
|
||||
|
||||
// 初始化时间模拟系统
|
||||
void smart_calendar_init_time_simulator(void);
|
||||
|
||||
// 更新时间模拟器
|
||||
void smart_calendar_update_time_simulator(void);
|
||||
|
||||
// 获取当前日期
|
||||
void smart_calendar_get_current_date(int *year, int *month, int *day);
|
||||
|
||||
// 创建自动更新日历
|
||||
void smart_calendar_create_auto_update_calendar(void);
|
||||
|
||||
// 创建自动更新定时器
|
||||
void smart_calendar_create_auto_update_timer(void);
|
||||
|
||||
// 主循环中的时间更新(每秒更新)
|
||||
void smart_calendar_time_update_loop(void);
|
||||
extern void lv_calendar_set_chinese_mode(lv_obj_t * obj, bool en);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
Reference in New Issue
Block a user