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/Src/Dev_Inf.c | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100755 Core/Src/Dev_Inf.c (limited to 'Core/Src/Dev_Inf.c') 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 + } + } +}; -- cgit v1.2.3