第一次提交

This commit is contained in:
2025-10-04 16:06:55 +08:00
commit 2acba0caf0
58 changed files with 11679 additions and 0 deletions

39
app/app_config.h Normal file
View File

@@ -0,0 +1,39 @@
#ifndef APP_CONFIG_H
#define APP_CONFIG_H
#ifdef __cplusplus
extern "C" {
#endif
// 标准库,每个模块中也会包含
#include <stdio.h>
#include <stddef.h>
#include <stdlib.h>
#include <stdint.h>
#include <float.h>
#include <math.h>
#include <stdbool.h>
#include <string.h>
#include <assert.h>
//外部依赖放在这里,方便分层管理,实际代码中也有这个文件,但是没有依赖
//移植的时候,存放依赖的文件不用移植
#include "app_dependence.h"
// 接口,全局变量都放在这里
#include "interface.h"
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif
static inline uint8_t app_close(void) { return 1; }
static inline uint8_t app_open(void) { return 0; }
#ifdef __cplusplus
}
#endif
#endif // APP_CONFIG_H