Добавлены команды чтения/записи Flash памяти.

This commit is contained in:
MaD_CaT
2024-09-16 08:50:56 +03:00
parent e607f3034d
commit 671f674bcc
28 changed files with 56943 additions and 53543 deletions

View 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_ */

View File

@@ -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