Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/famicom-dumper-writer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'FamicomDumperBootloader/Core/Inc/bootloader.h')
-rw-r--r--FamicomDumperBootloader/Core/Inc/bootloader.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/FamicomDumperBootloader/Core/Inc/bootloader.h b/FamicomDumperBootloader/Core/Inc/bootloader.h
new file mode 100644
index 0000000..7206cc3
--- /dev/null
+++ b/FamicomDumperBootloader/Core/Inc/bootloader.h
@@ -0,0 +1,23 @@
+#ifndef _BOOTLOADER_H_
+#define _BOOTLOADER_H_
+
+// Version of the PCB
+#define HARDWARE_VERSION_MAJOR 3
+#define HARDWARE_VERSION_MINOR 2
+#define HARDWARE_VERSION_SUFFIX 0
+
+#define HARDWARE_VERSION_ADDRESS 0x08070000 - 2048
+#define MSD_ADDRESS 0x08020000
+#define APP_ADDRESS 0x08040000
+#define WRITE_TO_FLASH_TIME 1500
+
+#define MSD_BLOCK_SIZE 2048
+#ifndef DEBUG
+#define MSD_BLOCK_COUNT 192 * 1024 / MSD_BLOCK_SIZE
+#else
+#define MSD_BLOCK_COUNT 128 * 1024 / MSD_BLOCK_SIZE
+#endif
+
+#define SVF_BUFFER_SIZE 2048
+
+#endif