32 lines
500 B
C
32 lines
500 B
C
#ifndef _BSP_FLASH_H_
|
|
#define _BSP_FLASH_H_
|
|
|
|
#include "main.h"
|
|
#include "stdio.h"
|
|
#include "string.h"
|
|
|
|
typedef struct
|
|
{
|
|
/*用于判断数据是否一致*/
|
|
u16 sn[5];
|
|
u8 modbus_id;
|
|
u16 modbus_read_reg_num;
|
|
u16 modbus_read_sensor_num;
|
|
} bsp_FlashData_t;
|
|
|
|
typedef struct
|
|
{
|
|
bsp_FlashData_t TempFlashData;
|
|
bsp_FlashData_t FlashData;
|
|
void (*Init)(void);
|
|
void (*Write)(void);
|
|
void (*Read)(void);
|
|
void (*Reset)(void);
|
|
} bsp_Flash_t;
|
|
|
|
|
|
|
|
extern bsp_Flash_t Usr_Flash;
|
|
|
|
#endif
|