ZDBMS/code_drv/BootApp.c

30 lines
984 B
C
Raw Permalink 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.

/********************************************************************************
Copyright (C), Sinowealth Electronic. Ltd.
Author: sino
Version: V1.0
Date: 2020/12/29
History:
V0.0 2020/04/26 Preliminary
********************************************************************************/
#include "Main.h"
/*************************************************************************************************
* 函数名: ISPProcess
* 参 数: 无
* 返回值: 无
* 描 述: ISP和IAP的接口函数
*************************************************************************************************/
void ISPProcess(void)
{
if(bISPFlg &&( bUart0SndAckFlg ||bUart1SndAckFlg||bUart2SndAckFlg))
{
bISPFlg = 0;
bUart0SndAckFlg = 0;
bUart1SndAckFlg = 0;
bUart2SndAckFlg = 0;
IrqDis(); //关闭总中断源
AfeWDTDis(); //关闭AFE的看门狗功能否则在更新程序时MCU会复位
((void(code*)(void))0x00A6)(); //Boot区IAP和ISP程序升级入口
}
}