- MyLibs - максимально платформонезависимые библиотеки (кроме разве что RTT) - RTT - STM32_General - библиотеки для периферии stm32
44 lines
1.8 KiB
C
44 lines
1.8 KiB
C
/**************************************************************************
|
||
* @file general_flash.h
|
||
* @brief Заголовочны файл модуля работы с FLASH.
|
||
*************************************************************************/
|
||
#ifndef __FLASH_GENERAL_H_
|
||
#define __FLASH_GENERAL_H_
|
||
|
||
//////////////////////////////////////////////////////////////////////
|
||
/////////////////////////---USER SETTINGS---/////////////////////////
|
||
|
||
|
||
/////////////////////////---USER SETTINGS---/////////////////////////
|
||
#include "mylibs_defs.h"
|
||
|
||
|
||
|
||
/////////////////////////////////////////////////////////////////////
|
||
////////////////////////////---DEFINES---////////////////////////////
|
||
|
||
////////////////////////////---DEFINES---////////////////////////////
|
||
|
||
|
||
/////////////////////////////////////////////////////////////////////
|
||
///////////////////////---STRUCTURES & ENUMS---//////////////////////
|
||
|
||
///////////////////////---STRUCTURES & ENUMS---//////////////////////
|
||
|
||
|
||
/////////////////////////////////////////////////////////////////////
|
||
///////////////////////////---FUNCTIONS---///////////////////////////
|
||
|
||
HAL_StatusTypeDef FLASH_Enable_DualBankMode(void);
|
||
HAL_StatusTypeDef FLASH_WriteProtection(uint32_t BankN, uint32_t WriteProtection);
|
||
/* functions for reading bytes/halswords/words */
|
||
uint8_t FLASH_Read_Byte(uint32_t add);
|
||
uint16_t FLASH_Read_HalfWord(uint32_t add);
|
||
uint32_t FLASH_Read_Word(uint32_t add);
|
||
/* functions for writing bytes/halswords/words */
|
||
HAL_StatusTypeDef FLASH_Write_Byte(uint32_t Address, uint8_t Data);
|
||
HAL_StatusTypeDef FLASH_Write_HalfWord(uint32_t Address, uint16_t Data);
|
||
HAL_StatusTypeDef FLASH_Write_Word(uint32_t Address, uint32_t Data);
|
||
///////////////////////////---FUNCTIONS---///////////////////////////
|
||
|
||
#endif // __FLASH_GENERAL_H_
|