mirror of
https://github.com/goldenfishs/MRobot.git
synced 2026-04-01 05:17:13 +08:00
添加falsh生成
This commit is contained in:
31
assets/User_code/bsp/flash/flash.h
Normal file
31
assets/User_code/bsp/flash/flash.h
Normal file
@@ -0,0 +1,31 @@
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* Includes ------------------------------------------------------------------ */
|
||||
#include <main.h>
|
||||
|
||||
#include "bsp/bsp.h"
|
||||
|
||||
/* Exported constants -------------------------------------------------------- */
|
||||
/* Base address of the Flash sectors */
|
||||
/* USER CODE BEGIN FLASH_SECTOR_DEFINES */
|
||||
/* AUTO GENERATED FLASH_SECTORS */
|
||||
/* USER CODE END FLASH_SECTOR_DEFINES */
|
||||
|
||||
/* USER CODE BEGIN FLASH_END_ADDRESS */
|
||||
/* AUTO GENERATED FLASH_END_ADDRESS */
|
||||
/* USER CODE END FLASH_END_ADDRESS */
|
||||
|
||||
/* Exported macro ------------------------------------------------------------ */
|
||||
/* Exported types ------------------------------------------------------------ */
|
||||
/* Exported functions prototypes --------------------------------------------- */
|
||||
void BSP_Flash_EraseSector(uint32_t sector);
|
||||
void BSP_Flash_WriteBytes(uint32_t address, const uint8_t *buf, size_t len);
|
||||
void BSP_Flash_ReadBytes(uint32_t address, void *buf, size_t len);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
Reference in New Issue
Block a user