Чет работает
This commit is contained in:
44
AllLibs/PeriphGeneral/Inc/__general_flash.h
Normal file
44
AllLibs/PeriphGeneral/Inc/__general_flash.h
Normal file
@@ -0,0 +1,44 @@
|
||||
/**************************************************************************
|
||||
* @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_
|
||||
Reference in New Issue
Block a user