summaryrefslogtreecommitdiff
path: root/Core/Src/Dev_Inf.c
diff options
context:
space:
mode:
Diffstat (limited to 'Core/Src/Dev_Inf.c')
-rwxr-xr-xCore/Src/Dev_Inf.c32
1 files changed, 32 insertions, 0 deletions
diff --git a/Core/Src/Dev_Inf.c b/Core/Src/Dev_Inf.c
new file mode 100755
index 0000000..c922bfe
--- /dev/null
+++ b/Core/Src/Dev_Inf.c
@@ -0,0 +1,32 @@
+/*
+ * Dev_Inf.c
+ *
+ */
+#include "Dev_Inf.h"
+#include "quadspi.h"
+
+/* This structure contains information used by ST-LINK Utility to program and erase the device */
+#if defined (__ICCARM__)
+__root struct StorageInfo const StorageInfo = {
+#else
+struct StorageInfo const StorageInfo = {
+#endif
+ "audio_0.1.0", // Device Name + version number
+ NOR_FLASH, // Device Type
+ 0x90000000, // Device Start Address
+ MEMORY_FLASH_SIZE, // Device Size in Bytes
+ MEMORY_PAGE_SIZE, // Programming Page Size
+ 0xFF, // Initial Content of Erased Memory
+
+ // Specify Size and Address of Sectors (view example below)
+ {
+ {
+ (MEMORY_FLASH_SIZE / MEMORY_SECTOR_SIZE), // Sector Numbers,
+ (uint32_t) MEMORY_SECTOR_SIZE // Sector Size
+ },
+ {
+ 0x00000000,
+ 0x00000000
+ }
+ }
+};