#ifndef __IAP_H__ #define __IAP_H__ #include "stm32f10x.h" /******************************************************************************** * @file iap.c * @author 晏诚科技 Mr.Wang * @version V1.0.0 * @date 11-Dec-2018 * @brief 实现固件的跳转 ****************************************************************************** * @attention *******************************************************************************/ /********************************************************************************** **自定义变量类型 *********************************************************************************/ typedef void (*iapfun)(void); //定义一个函数指针类型的参数. /***************************************** *内部函数声明 ****************************************/ /***************************************** *对外接口函数声明 ****************************************/ extern uint32_t QueryNewAppArea(uint32_t appNum ) ; //校验固件合法性、获取跳转的FLASH存放区域首地址 extern void Iap_Load_App(u32 appxAddr) ; //执行flash里面的app程序 #endif