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:
authorAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2023-08-16 13:33:09 +0300
committerAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2023-08-16 13:33:09 +0300
commit251cae8e8d53e39b6cf4a9efa9a35058add9c2e7 (patch)
tree962482c377d5cd7d8153be93505ed31aaaf837d6
parent4dc8e0e8738ca2b6860e8ddbf910d4a5a29635c8 (diff)
Another minor fixes
-rw-r--r--CPLD/FamicomDumper.qsf4
-rw-r--r--STM32/Core/Inc/dumper.h14
2 files changed, 10 insertions, 8 deletions
diff --git a/CPLD/FamicomDumper.qsf b/CPLD/FamicomDumper.qsf
index 31ef7ff..9a2cf4d 100644
--- a/CPLD/FamicomDumper.qsf
+++ b/CPLD/FamicomDumper.qsf
@@ -72,4 +72,6 @@ set_location_assignment PIN_19 -to led_prg_read
set_location_assignment PIN_18 -to led_prg_write
set_location_assignment PIN_15 -to led_chr_read
set_location_assignment PIN_14 -to led_chr_write
-set_location_assignment PIN_31 -to coolboy_mode \ No newline at end of file
+set_location_assignment PIN_31 -to coolboy_mode
+set_global_assignment -name USE_CONFIGURATION_DEVICE ON
+set_global_assignment -name GENERATE_SVF_FILE ON \ No newline at end of file
diff --git a/STM32/Core/Inc/dumper.h b/STM32/Core/Inc/dumper.h
index 09f7bbd..779e810 100644
--- a/STM32/Core/Inc/dumper.h
+++ b/STM32/Core/Inc/dumper.h
@@ -18,13 +18,13 @@
#define FDS_DRIVE_STATUS 0x4032
#define FDS_EXT_READ 0x4033
-#define FDS_CONTROL_MOTOR_ON 0b00000001
-#define FDS_CONTROL_MOTOR_OFF 0b00000010
-#define FDS_CONTROL_READ 0b00100100
-#define FDS_CONTROL_WRITE 0b00100000
-#define FDS_CONTROL_CRC 0b00010000
-#define FDS_CONTROL_TRANSFER_ON 0b01000000
-#define FDS_CONTROL_IRQ_ON 0b10000000
+#define FDS_CONTROL_MOTOR_ON 0b00100001
+#define FDS_CONTROL_MOTOR_OFF 0b00100010
+#define FDS_CONTROL_READ 0b00100100
+#define FDS_CONTROL_WRITE 0b00100000
+#define FDS_CONTROL_CRC 0b00110000
+#define FDS_CONTROL_TRANSFER_ON 0b01100000
+#define FDS_CONTROL_IRQ_ON 0b10100000
#define FDS_DRIVE_STATUS_DISK_NOT_INSERTED 0b00000001
#define FDS_DRIVE_STATUS_DISK_NOT_READY 0b00000010