feat(assets): embed LCD and audio resources in OTA app
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
#pragma once
|
||||
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#include "esp_err.h"
|
||||
|
||||
typedef struct {
|
||||
const uint8_t *data;
|
||||
size_t size;
|
||||
} platform_asset_view_t;
|
||||
|
||||
/* 按包内完整相对名称查找素材,例如 lcd/ota1.png、audio_prompts/boot.opus;成功后 data 指向当前固件的只读映射区,无需释放。 */
|
||||
esp_err_t platform_asset_find(const char *name, platform_asset_view_t *out_asset);
|
||||
Reference in New Issue
Block a user