初始提交卡包 USB 工程

纳入固件源码、屏幕组件、nand_xfer 工具和文档。忽略本机构建产物、sdkconfig,以及含本机路径的依赖锁。

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
zhengxin
2026-10-13 21:54:50 +08:00
co-authored by Cursor
commit 851e347cf5
260 changed files with 269349 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
#ifndef __SCREEN_SLEEP_H__
#define __SCREEN_SLEEP_H__
#ifdef __cplusplus
extern "C" {
#endif
#include "config.h"
extern const esp_lcd_panel_dev_config_t panel_config;
extern const char *TAG_LVGL ;
esp_err_t app_lcd_init(void);
void system_keep_alive(void);
void load_timeout_from_nvs(void);
void set_auto_sleep_timeout(uint32_t ms);
uint32_t get_auto_sleep_timeout(void);
void commit_auto_sleep_timeout_if_dirty(void);
/** 立即把 ms 写入 RAM 与 NVS(停掉延迟提交定时器);用于恢复出厂等须在 esp_restart 前落盘的场景 */
void persist_auto_sleep_timeout_ms_now(uint32_t ms);
void auto_sleep_checker_cb(lv_timer_t *timer);
#ifdef __cplusplus
}
#endif
#endif