diff options
| author | ozpv <39195175+ozpv@users.noreply.github.com> | 2026-08-15 17:29:50 -0500 |
|---|---|---|
| committer | ozpv <39195175+ozpv@users.noreply.github.com> | 2026-08-15 17:29:50 -0500 |
| commit | 5c51df3faec292a701448bc7d79c4920b91f549b (patch) | |
| tree | 66587ad64ae6ea88ab0344d4b3deab98b2c71208 /Core/Inc/Dev_Inf.h | |
| parent | 5d45727e33e224360a59b52e283ccb840ae9b926 (diff) | |
Diffstat (limited to 'Core/Inc/Dev_Inf.h')
| -rwxr-xr-x | Core/Inc/Dev_Inf.h | 35 |
1 files changed, 35 insertions, 0 deletions
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_ */
|
