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.
38 lines
660 B
38 lines
660 B
#pragma once
|
|
#include <stdbool.h>
|
|
|
|
#include "main.h"
|
|
#include "project_configs.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:
|
|
*/
|
|
|
|
#define DEVICE_INFO_START_ADD SDK_CFG__SN_FLASH_ADDR //
|
|
|
|
typedef struct {
|
|
int32_t year;
|
|
int32_t weak;
|
|
int32_t index;
|
|
} sn_t;
|
|
|
|
sn_t* sn_get();
|
|
const char* sn_get_str();
|