28 lines
669 B
C
28 lines
669 B
C
#ifndef _APP_COM_H_
|
|
#define _APP_COM_H_
|
|
|
|
#include "main.h"
|
|
#include "app_leakage.h"
|
|
#include "bsp_uart.h"
|
|
|
|
#define APP_COM_NUM (4)
|
|
|
|
typedef struct
|
|
{
|
|
u8 baudrate; /*波特率*/
|
|
}app_com_flash_data_t;
|
|
|
|
typedef struct
|
|
{
|
|
app_com_flash_data_t flash_data; /*flash数据*/
|
|
u16 device_num; /*绑定的设备数量*/
|
|
u8 device_index[APP_LEAKAGE_SUB_DEVICE_NUM]; /*设备的索引*/
|
|
bsp_uart_t *uart; /*绑定的哪个串口*/
|
|
}app_com_class_t;
|
|
|
|
typedef struct
|
|
{
|
|
app_com_class_t com_class[APP_COM_NUM];
|
|
}app_com_t;
|
|
|
|
#endif |