You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
769 B
39 lines
769 B
#pragma once
|
|
#include <stdbool.h>
|
|
|
|
#include "main.h"
|
|
|
|
/**
|
|
* @brief
|
|
* STM32F407VETx 1024k
|
|
*
|
|
* index startAdd size
|
|
* 0 0x08000000 16k
|
|
* 1 0x08004000 16k
|
|
* 2 0x08008000 16k
|
|
* 3 0x0800C000 16k
|
|
* 4 0x08010000 64k
|
|
* 5 0x08020000 128k
|
|
* 6 0x08040000 128k
|
|
* 7 0x08060000 128k
|
|
* 8 0x08080000 128k
|
|
* 9 0x080A0000 128k
|
|
* 10 0x080C0000 128k
|
|
* 11 0x080E0000 128k
|
|
*
|
|
*
|
|
* @WARNING:
|
|
* 1. 我们使用第7个扇区,即0x08060000~0x0807FFFF
|
|
* 2. 程序最大不能超过75%
|
|
* 3. rawstartadd第一位必须是0xABCD,最后一位是校验和
|
|
*/
|
|
|
|
#define DEVICE_INFO_START_ADD 0x080E0000 //
|
|
|
|
typedef struct {
|
|
uint16_t index;
|
|
uint8_t weak;
|
|
uint8_t year;
|
|
} xs_device_info_t;
|
|
|
|
xs_device_info_t* xs_device_info_get();
|