2、LVGL内存管理切换为系统malloc(CONFIG_LV_MEM_CUSTOM=y),使gifdec大块分配走PSRAM避免内部堆不足; 3、pages.h stub头文件补充pages_cleanup_gif()声明,修复ui_ScreenImg.c编译隐式声明错误; Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
27 lines
607 B
C
27 lines
607 B
C
#ifndef _PAGES_STUB_H_
|
||
#define _PAGES_STUB_H_
|
||
|
||
// Stub 头文件:dzbj ui_ScreenImg.c 引用,Phase 1 仅提供声明
|
||
// 实际实现将在后续阶段添加
|
||
|
||
#include "esp_err.h"
|
||
#include <stdint.h>
|
||
#include <stdbool.h>
|
||
#include "lvgl.h"
|
||
|
||
void pwm_init(void);
|
||
void pwm_set_brightness(uint8_t percent);
|
||
uint8_t pwm_get_brightness(void);
|
||
|
||
const char* get_current_image(void);
|
||
bool delete_current_image(void);
|
||
void init_spiffs_image_list(void);
|
||
void free_spiffs_image_list(void);
|
||
bool set_image_index_by_name(const char *name);
|
||
|
||
#if LV_USE_GIF
|
||
void pages_cleanup_gif(void);
|
||
#endif
|
||
|
||
#endif // _PAGES_STUB_H_
|