Motion_EC_Stm32_archived/App/Inc/isp.h

24 lines
487 B
C
Raw Permalink Normal View History

2021-03-09 18:17:28 +08:00
/*
* @Description:
* @Date: 2021-03-09 10:22:15
* @LastEditors: CK.Zh
* @LastEditTime: 2021-03-09 10:26:05
* @FilePath: \NaviKit_EC_stm32\App\Inc\isp.h
*/
#ifndef __ISP_H__
#define __ISP_H__
2021-02-24 15:52:23 +08:00
#include "main.h"
2021-03-09 18:17:28 +08:00
2021-02-24 15:52:23 +08:00
#define ISP_ADDRESS 0x1fffb000 //In-System-Program address in flash
#define MAGIC_VALUE_ADDRESS RTC_BKP_DR1
#define MAGIC_VALUE 0xa5a5 //jump to isp while ISP_BKP_DR's value equal this
void ISP_Jump();
void ISP_Judge();
bool ISP_Prepare();
2021-03-09 18:17:28 +08:00
#endif