/** ****************************************************************************** * @file flash.h * @author Hypmotion Firmware Team * @version V1.0.0 * @date May 27, 2026 * @brief This file contains all the functions prototypes for the flash.c * firmware library * ****************************************************************************** * @Copyright * COPYRIGHT NOTICE: (c) 2025 HYPMOTION . All rights reserved. * * The information contained herein is confidential * property of Company. The use, copying, transfer or * disclosure of such information is prohibited except * by express written agreement with Company. * ****************************************************************************** */ /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef __INC_FLASH_H__ #define __INC_FLASH_H__ #ifdef __cplusplus extern "C" { #endif /* Includes ------------------------------------------------------------------*/ #include "main.h" /* Exported constants --------------------------------------------------------*/ /* Exported macro ------------------------------------------------------------*/ #define FLASH_DEVICE_ID_ADDR 0x0800FC00 #define FLASH_DEFAULT_DEVICE_ID 1002UL #define FLASH_FORCE_DEFAULT_DEVICE_ID_ON_BOOT 0U /* Exported types ------------------------------------------------------------*/ /* Exported functions --------------------------------------------------------*/ HAL_StatusTypeDef FLASH_WriteUint32(uint32_t address, uint32_t data); uint32_t FLASH_ReadUint32(uint32_t address); void FLASH_SaveDeviceID(uint32_t id); uint32_t FLASH_LoadDeviceID(void); #ifdef __cplusplus } #endif // extern "C" #endif /* __INC_FLASH_H__ */ /************************ (C) COPYRIGHT HYPMOTION *****END OF FILE****************/