Explorar el Código

Fix v1.2 eject and user buttons

The user and eject buttons for the ZuluSCSI v1.2 were swapped.
Set the GPIO pin numbers to their correct value.

Also added the interrupt port and pin number to the GPIO definition
file `ZuluSCSI_v1_1_gpio.h`.
Morio hace 2 años
padre
commit
a90b1100db
Se han modificado 1 ficheros con 7 adiciones y 3 borrados
  1. 7 3
      lib/ZuluSCSI_platform_GD32F205/ZuluSCSI_v1_1_gpio.h

+ 7 - 3
lib/ZuluSCSI_platform_GD32F205/ZuluSCSI_v1_1_gpio.h

@@ -205,6 +205,10 @@
 #define ADC_VERSION_DETECT_V1_2_LIMIT_LOW 0
 #define ADC_VERSION_DETECT_V1_2_LIMIT_HIGH 4096*1
 
+// I2C and SPI Interrupt Pin
+#define INTR_PORT   GPIOE
+#define INTR_PIN    GPIO_PIN_1
+
 // SPI Pins: v1.2
 #define SPI_CS_PORT     GPIOB
 #define SPI_CS_PIN      GPIO_PIN_9
@@ -303,8 +307,8 @@
 #define EJECT_2_PORT    GPIOE
 #define EJECT_2_PIN     GPIO_PIN_6
 
-// Ejection button is on GPIO PA3 and USER button is on GPIO PA2
+// Ejection button is on GPIO PA2 and USER button is on GPIO PA3
 #define EJECT_BTN_PORT  GPIOA
-#define EJECT_BTN_PIN   GPIO_PIN_3
+#define EJECT_BTN_PIN   GPIO_PIN_2
 #define USER_BTN_PORT   GPIOA
-#define USER_BTN_PIN    GPIO_PIN_2
+#define USER_BTN_PIN    GPIO_PIN_3