提交全部资料
This commit is contained in:
27
1.主程序源代码/User/inc/bsp_mod.h
Normal file
27
1.主程序源代码/User/inc/bsp_mod.h
Normal file
@@ -0,0 +1,27 @@
|
||||
|
||||
#ifndef __MOD_H
|
||||
#define __MOD_H
|
||||
|
||||
#include "main.h"
|
||||
|
||||
typedef void (*ToggleFunc)(void);
|
||||
typedef void (*DelayFunc)(uint32_t);
|
||||
|
||||
typedef struct
|
||||
{
|
||||
void (*Loop)(ToggleFunc toggle, DelayFunc delayFunc, uint8_t iterations, uint32_t delayTime);
|
||||
} MODClassStruct;
|
||||
|
||||
typedef struct {
|
||||
const char *e_val;
|
||||
const char *t_val;
|
||||
const char *r_val;
|
||||
const char *c_val;
|
||||
} LoraCommandParams;
|
||||
|
||||
extern MODClassStruct MODClass;
|
||||
extern LoraCommandParams cmd_params[];
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user