Initial commit: TXW82x FPV v2.7.0.7-42229 SDK + project sources

This commit is contained in:
2026-07-06 11:30:13 +08:00
commit e76462eeb7
3451 changed files with 1415300 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
#ifndef _PROMPT_TONE_H_
#define _PROMPT_TONE_H_
#include "basic_include.h"
#include "lib/heap/av_heap.h"
#include "lib/heap/av_psram_heap.h"
#include "lib/multimedia/msi.h"
#include "lib/multimedia/framebuff.h"
#ifdef PSRAM_HEAP
#define PROMPTTONE_MALLOC av_psram_malloc
#define PROMPTTONE_ZALLOC av_psram_zalloc
#define PROMPTTONE_FREE av_psram_free
#else
#define PROMPTTONE_MALLOC av_malloc
#define PROMPTTONE_ZALLOC av_zalloc
#define PROMPTTONE_FREE av_free
#endif
typedef struct {
const uint8_t *tone_buf;
void *task_hdl;
uint32_t tone_buf_size;
uint32_t tone_buf_offset;
struct fbpool tx_pool;
struct msi *msi;
struct msi *mp3_msi;
} PROMPT_TONE_STRUCT;
extern const uint8_t connect_mp3[];
extern const uint8_t disconnect_mp3[];
#endif