Ignore:
Timestamp:
Feb 11, 2025, 4:29:20 PM (3 months ago)
Author:
Zed
Message:

Added basic I2C EEPROM support.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ctrl/firmware/Main/CubeMX/FATFS/App/fatfs.c

    r75 r89  
    2323FATFS SDFatFS;    /* File system object for SD logical drive */
    2424FIL SDFile;       /* File object for SD */
     25uint8_t retEEPROM;    /* Return value for USER */
     26char EEPROMPath[4];   /* USER logical drive path */
     27FATFS USERFatFS;    /* File system object for USER logical drive */
     28FIL EEPROMFile;       /* File object for USER */
    2529
    2630/* USER CODE BEGIN Variables */
     
    3236  /*## FatFS: Link the SD driver ###########################*/
    3337  retSD = FATFS_LinkDriver(&SD_Driver, SDPath);
     38  /*## FatFS: Link the USER driver ###########################*/
     39  retEEPROM = FATFS_LinkDriver(&EEPROM_Driver, EEPROMPath);
    3440
    3541  /* USER CODE BEGIN Init */
Note: See TracChangeset for help on using the changeset viewer.