Initial commit: my SECS2 project
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
#ifndef _BSP_IAP_H_
|
||||
#define _BSP_IAP_H_
|
||||
|
||||
#include "main.h"
|
||||
|
||||
typedef union
|
||||
{
|
||||
struct
|
||||
{
|
||||
u8 u8_Data[4];
|
||||
};
|
||||
uint32_t u64_Data;
|
||||
}u64_Temp_n;
|
||||
|
||||
|
||||
/******************************************
|
||||
* 结构体: bsp_iap_t
|
||||
* 功能: IAP 控制结构体
|
||||
* 描述: 存储 IAP 状态和函数指针
|
||||
*******************************************/
|
||||
typedef struct
|
||||
{
|
||||
u8 state; /* IAP 状态 */
|
||||
u16 page_size; /* 页面大小(字节) */
|
||||
void (*init)(void); /* 初始化函数指针 */
|
||||
void (*task)(void); /* 任务函数指针 */
|
||||
} bsp_iap_t;
|
||||
|
||||
/* 声明外部变量 */
|
||||
extern bsp_iap_t iap;
|
||||
|
||||
#endif /* _BSP_IAP_H_ */
|
||||
Reference in New Issue
Block a user