基于SOC开发流程的的通用SDK框架,目前服务器OTA这块还没搭建好,但不影响功能开发,OTA目前可以用蓝牙直连OTA的方式进行升级

This commit is contained in:
2026-08-03 15:08:04 +08:00
commit 158b74447d
916 changed files with 223582 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
#ifndef DEVICE_SLIDEKEY_H
#define DEVICE_SLIDEKEY_H
#include "typedef.h"
#include "device/device.h"
#include "asm/adc_api.h"
struct slidekey_port {
u8 io;
u8 io_up_en; //是否用外部上拉,1:用外部上拉, 0:用内部上拉10K
u32 level;
u32 ad_channel;
int msg;
};
struct slidekey_platform_data {
u8 enable;
u8 num;
const struct slidekey_port *port;
};
//API:
extern int slidekey_init(const struct slidekey_platform_data *slidekey_data);
#endif