提交全部资料
This commit is contained in:
57
1.主程序源代码/User/main.h
Normal file
57
1.主程序源代码/User/main.h
Normal file
@@ -0,0 +1,57 @@
|
||||
#ifndef __MAIN_H
|
||||
#define __MAIN_H
|
||||
|
||||
// ST lib
|
||||
#include "stm32f10x.h"
|
||||
// C lib
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <stdarg.h>
|
||||
// system
|
||||
#include "delay.h"
|
||||
|
||||
// drive
|
||||
#include "flexible_button.h"
|
||||
#include "bsp_led.h"
|
||||
#include "bsp_button.h"
|
||||
#include "bsp_usart.h"
|
||||
#include "bsp_chipid.h"
|
||||
#include "bsp_bat.h"
|
||||
#include "bsp_mod.h"
|
||||
#include "easyflash.h"
|
||||
|
||||
#define LOCK 0
|
||||
#define UNLOCK 1
|
||||
|
||||
extern uint8_t Lora_recbuff[];
|
||||
|
||||
/*整机数据结构体*/
|
||||
typedef struct rc_data
|
||||
{
|
||||
|
||||
uint8_t Lock_state; //整机锁定状态
|
||||
uint8_t Asr_state; //语音锁定状态
|
||||
uint8_t Key_data[4]; //当前键值
|
||||
uint8_t Lock_time_tick; //无操作锁定计时
|
||||
uint8_t isLEDTog; //闪烁信号
|
||||
uint8_t isSend; //发送使能
|
||||
|
||||
union
|
||||
{
|
||||
struct
|
||||
{
|
||||
char lock_time; // 数据库读取锁定时间
|
||||
uint8_t password[8]; // 数据库读取密码
|
||||
uint16_t key_en_table; // 按键使能表 10个按键
|
||||
} Kv_get;
|
||||
};
|
||||
} rc_data_t;
|
||||
|
||||
rc_data_t *rc_data(void);
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user