Explorar o código

add missing pullup to cs

optixx %!s(int64=14) %!d(string=hai) anos
pai
achega
dc67d91c4f
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      avr/usbload/sram.h

+ 2 - 1
avr/usbload/sram.h

@@ -151,7 +151,8 @@
                                 (AVR_CS_DIR |= (1 << AVR_CS_PIN)))
 
 #define snes_bus_active()	    ((AVR_SNES_SW_PORT |= (1 << AVR_SNES_SW_PIN)),\
-                                (AVR_CS_DIR &= ~(1 << AVR_CS_PIN)))
+                                (AVR_CS_DIR &= ~(1 << AVR_CS_PIN)),\
+                                (AVR_CS_PORT |= (1 << AVR_CS_PIN)))
 
 #define HI_LOROM_SW_PORT	    PORTD
 #define HI_LOROM_SW_DIR	        DDRD