Добавлены команды чтения/записи Flash памяти.
This commit is contained in:
33
Core/Inc/FLASH_SECTOR_F4.h
Normal file
33
Core/Inc/FLASH_SECTOR_F4.h
Normal file
@@ -0,0 +1,33 @@
|
||||
/**
|
||||
***************************************************************************************************************
|
||||
***************************************************************************************************************
|
||||
***************************************************************************************************************
|
||||
File: FLASH_SECTOR_H7.c
|
||||
Modifier: ControllersTech.com
|
||||
Updated: 27th MAY 2021
|
||||
***************************************************************************************************************
|
||||
Copyright (C) 2017 ControllersTech.com
|
||||
This is a free software under the GNU license, you can redistribute it and/or modify it under the terms
|
||||
of the GNU General Public License version 3 as published by the Free Software Foundation.
|
||||
This software library is shared with public for educational purposes, without WARRANTY and Author is not liable for any damages caused directly
|
||||
or indirectly by this software, read more about this on the GNU General Public License.
|
||||
***************************************************************************************************************
|
||||
*/
|
||||
|
||||
#ifndef INC_FLASH_SECTOR_F4_H_
|
||||
#define INC_FLASH_SECTOR_F4_H_
|
||||
|
||||
#include "stdint.h"
|
||||
|
||||
uint32_t Flash_Write_Data (uint32_t StartSectorAddress, uint32_t *Data, uint16_t numberofwords);
|
||||
|
||||
void Flash_Read_Data (uint32_t StartSectorAddress, uint32_t *RxBuf, uint16_t numberofwords);
|
||||
|
||||
void Convert_To_Str (uint32_t *Data, char *Buf);
|
||||
|
||||
void Flash_Write_NUM (uint32_t StartSectorAddress, float Num);
|
||||
|
||||
float Flash_Read_NUM (uint32_t StartSectorAddress);
|
||||
|
||||
|
||||
#endif /* INC_FLASH_SECTOR_F4_H_ */
|
||||
@@ -80,6 +80,7 @@ void Error_Handler(void);
|
||||
/* USER CODE BEGIN Private defines */
|
||||
#define ISA_BASE_RD 0x60000000U
|
||||
#define ISA_BASE_WR 0x60400000U
|
||||
#define FLASH_BASE_WR 0x08060000U
|
||||
/* USER CODE END Private defines */
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
Reference in New Issue
Block a user