[89] | 1 | /* USER CODE BEGIN Header */ |
---|
| 2 | /** |
---|
| 3 | ****************************************************************************** |
---|
| 4 | * @file user_diskio.h |
---|
| 5 | * @brief This file contains the common defines and functions prototypes for |
---|
| 6 | * the user_diskio driver. |
---|
| 7 | ****************************************************************************** |
---|
| 8 | * @attention |
---|
| 9 | * |
---|
| 10 | * Copyright (c) 2025 STMicroelectronics. |
---|
| 11 | * All rights reserved. |
---|
| 12 | * |
---|
| 13 | * This software is licensed under terms that can be found in the LICENSE file |
---|
| 14 | * in the root directory of this software component. |
---|
| 15 | * If no LICENSE file comes with this software, it is provided AS-IS. |
---|
| 16 | * |
---|
| 17 | ****************************************************************************** |
---|
| 18 | */ |
---|
| 19 | /* USER CODE END Header */ |
---|
| 20 | |
---|
| 21 | /* Define to prevent recursive inclusion -------------------------------------*/ |
---|
| 22 | #ifndef __EEPROM_DISKIO_H |
---|
| 23 | #define __EEPROM_DISKIO_H |
---|
| 24 | |
---|
| 25 | #ifdef __cplusplus |
---|
| 26 | extern "C" { |
---|
| 27 | #endif |
---|
| 28 | |
---|
| 29 | /* USER CODE BEGIN 0 */ |
---|
| 30 | |
---|
| 31 | /* Includes ------------------------------------------------------------------*/ |
---|
| 32 | /* Exported types ------------------------------------------------------------*/ |
---|
| 33 | /* Exported constants --------------------------------------------------------*/ |
---|
[90] | 34 | |
---|
| 35 | #define M24256E_PAGESIZE 64U |
---|
| 36 | #define M24256E_MEMORYSIZE 32768U // in bytes, do not change |
---|
| 37 | |
---|
| 38 | #define EEICA1_M24_INSTANCES_NBR 2U |
---|
| 39 | #define EEICA1_M24256E 0U |
---|
| 40 | #define EEICA1_M24xx 1U |
---|
| 41 | |
---|
| 42 | #define MAX_TRIALS 3U |
---|
| 43 | |
---|
[89] | 44 | /* Exported functions ------------------------------------------------------- */ |
---|
| 45 | extern Diskio_drvTypeDef EEPROM_Driver; |
---|
| 46 | |
---|
| 47 | /* USER CODE END 0 */ |
---|
| 48 | |
---|
| 49 | #ifdef __cplusplus |
---|
| 50 | } |
---|
| 51 | #endif |
---|
| 52 | |
---|
| 53 | #endif /* __EEPROM_DISKIO_H */ |
---|