Files
LoRaWAN_Project/Inc/app.h
2024-11-10 16:25:19 +08:00

47 lines
783 B
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#ifndef __APP_H
#define __APP_H
#include "stdint.h"
/* 软件版本,升级时修改该信息即可 */
#define CODE_VERSION "V1.0.3"
/* 软件版本,升级时修改该信息即可 */
#define PRINT_CODE_VERSION_INFO(format, ...) debug_printf("******** ---Based on LoRaWAN sensor data transmission experiment "format"_%s %s --- ********\r\n", ##__VA_ARGS__, __DATE__, __TIME__)
/** 串口接收内容长度最大值 512字节 */
#define USART_RECV_LEN_MAX 512
/** 入网超时时间120s */
#define JOIN_TIME_120_SEC 120
typedef struct {
char upcnt[10];
char ackcnt[10];
char toa[10];
char nbt[10];
char ch[10];
char sf[10];
char pwr[10];
char per[10];
char rssi[10];
char snr[10];
} DEBUG;
void LoRaWAN_Func_Process(void);
void LoRaWAN_Board_Info_Print(void);
#endif