/* USER CODE BEGIN Header */
/**
 ******************************************************************************
  * @file    user_diskio.h
  * @brief   This file contains the common defines and functions prototypes for
  *          the user_diskio driver.
  ******************************************************************************
  * @attention
  *
  * Copyright (c) 2025 STMicroelectronics.
  * All rights reserved.
  *
  * This software is licensed under terms that can be found in the LICENSE file
  * in the root directory of this software component.
  * If no LICENSE file comes with this software, it is provided AS-IS.
  *
  ******************************************************************************
  */
 /* USER CODE END Header */

/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __EEPROM_DISKIO_H
#define __EEPROM_DISKIO_H

#ifdef __cplusplus
 extern "C" {
#endif

/* USER CODE BEGIN 0 */

/* Includes ------------------------------------------------------------------*/
/* Exported types ------------------------------------------------------------*/
/* Exported constants --------------------------------------------------------*/

#define M24256E_PAGESIZE					64U
#define M24256E_MEMORYSIZE					32768U // in bytes, do not change

#define EEICA1_M24_INSTANCES_NBR			2U
#define EEICA1_M24256E						0U
#define EEICA1_M24xx						1U

#define MAX_TRIALS							3U

/* Exported functions ------------------------------------------------------- */
extern Diskio_drvTypeDef  EEPROM_Driver;

/* USER CODE END 0 */

#ifdef __cplusplus
}
#endif

#endif /* __EEPROM_DISKIO_H */
