From 5c51df3faec292a701448bc7d79c4920b91f549b Mon Sep 17 00:00:00 2001 From: ozpv <39195175+ozpv@users.noreply.github.com> Date: Sat, 15 Aug 2026 17:29:50 -0500 Subject: Add files via git push --- Core/Inc/Dev_Inf.h | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100755 Core/Inc/Dev_Inf.h (limited to 'Core/Inc/Dev_Inf.h') diff --git a/Core/Inc/Dev_Inf.h b/Core/Inc/Dev_Inf.h new file mode 100755 index 0000000..f24ba70 --- /dev/null +++ b/Core/Inc/Dev_Inf.h @@ -0,0 +1,35 @@ + +#ifndef DEV_INF_H_ +#define DEV_INF_H_ + +#define MCU_FLASH 1 +#define NAND_FLASH 2 +#define NOR_FLASH 3 +#define SRAM 4 +#define PSRAM 5 +#define PC_CARD 6 +#define SPI_FLASH 7 +#define I2C_FLASH 8 +#define SDRAM 9 +#define I2C_EEPROM 10 + +#define SECTOR_NUM 10 // Max Number of Sector types + +struct DeviceSectors { + unsigned long SectorNum; // Number of Sectors + unsigned long SectorSize; // Sector Size in Bytes +}; + +struct StorageInfo { + char DeviceName[100]; // Device Name and Description + unsigned short DeviceType; // Device Type: ONCHIP, EXT8BIT, EXT16BIT, ... + unsigned long DeviceStartAddress; // Default Device Start Address + unsigned long DeviceSize; // Total Size of Device + unsigned long PageSize; // Programming Page Size + unsigned char EraseValue; // Content of Erased Memory + struct DeviceSectors sectors[SECTOR_NUM]; +}; + + + +#endif /* DEV_INF_H_ */ -- cgit v1.2.3