diff options
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_ */
|
