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