移植Test命令,验证成功
EJ EX 写工厂信息验证成功
This commit is contained in:
64
source/elec_det/elec_io.h
Normal file
64
source/elec_det/elec_io.h
Normal file
@@ -0,0 +1,64 @@
|
||||
|
||||
|
||||
#ifndef elec_io_h__
|
||||
#define elec_io_h__
|
||||
|
||||
// 此文件实现elec模块的输入输出接口
|
||||
// 引用时,此文件一定要最后包含
|
||||
|
||||
#include "stdint.h"
|
||||
#include "commend.h"
|
||||
#include "list.h"
|
||||
|
||||
#ifdef printf
|
||||
#undef printf
|
||||
#endif
|
||||
#ifdef rt_kprintf
|
||||
#undef rt_kprintf
|
||||
#endif
|
||||
#ifdef MSH_CMD_EXPORT_ALIAS
|
||||
#undef MSH_CMD_EXPORT_ALIAS
|
||||
#endif
|
||||
|
||||
|
||||
// 定义最大参数个数
|
||||
#define MSH_CMD_PARAM_MAX_NUM 50
|
||||
|
||||
|
||||
#define printf cmd_print
|
||||
#define rt_kprintf cmd_print
|
||||
|
||||
#define MSH_CMD_EXPORT_ALIAS(fun_,cmd_,desc)\
|
||||
static int __msh_##fun_(list_def *argv /* str */)\
|
||||
{\
|
||||
char *s[MSH_CMD_PARAM_MAX_NUM]={0};\
|
||||
int num=list_length(argv);\
|
||||
int ret=0;\
|
||||
for(int i=0;i<num;i++){s[i]=list_get_str(argv,i);}\
|
||||
fun_(num,s);\
|
||||
return ret;\
|
||||
}\
|
||||
commend_export(cmd_,__msh_##fun_,#desc);
|
||||
|
||||
|
||||
int ConsoleUsart_send_bytes(uint8_t *d,int len);
|
||||
|
||||
int SaveBoardInfo(void);
|
||||
|
||||
int LoadBoardInfo(void);
|
||||
|
||||
void Ye_RunPlanCheckTest(void);
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user