16 lines
477 B
C
16 lines
477 B
C
#ifndef __USER_FLASH_H__
|
|
#define __USER_FLASH_H__
|
|
|
|
#include "main.h"
|
|
|
|
/* Flash配置 -------------------------------------------------*/
|
|
#define FLASH_USER_START_ADDR 0x080E0000 // Sector11起始地址(128KB)
|
|
#define FLASH_USER_SECTOR FLASH_SECTOR_11
|
|
|
|
/* 函数声明 -------------------------------------------------*/
|
|
HAL_StatusTypeDef flash_write_data(uint32_t addr, uint8_t *data, uint16_t size);
|
|
void flash_read_data(uint32_t addr, uint8_t *data, uint32_t size);
|
|
|
|
#endif
|
|
|