From d8eb1eb4a438d5e7869b996fb058331d2a7f069f Mon Sep 17 00:00:00 2001 From: optixx Date: Thu, 27 Aug 2009 19:06:20 +0200 Subject: [PATCH] re-reroute reset line and add mcc io defines --- avr/usbload/sram.h | 32 +++++++++++++++++++------------- 1 file changed, 19 insertions(+), 13 deletions(-) diff --git a/avr/usbload/sram.h b/avr/usbload/sram.h index a380641..178e104 100644 --- a/avr/usbload/sram.h +++ b/avr/usbload/sram.h @@ -77,17 +77,6 @@ #define snes_irq_off() (SNES_IRQ_DIR &= ~(1 << SNES_IRQ_PIN)) #define snes_irq_lo() (SNES_IRQ_PORT &= ~(1 << SNES_IRQ_PIN)) -#define SNES_RESET_PORT PORTB -#define SNES_RESET_DIR DDRB -#define SNES_RESET_PIN PB4 - - -#define snes_reset_on() (SNES_RESET_DIR |= (1 << SNES_RESET_PIN)) -#define snes_reset_hi() (SNES_RESET_PORT |= (1 << SNES_RESET_PIN)) - -#define snes_reset_off() (SNES_RESET_DIR &= ~(1 << SNES_RESET_PIN)) -#define snes_reset_lo() (SNES_RESET_PORT &= ~(1 << SNES_RESET_PIN)) - /* ---------------------------- PORT C ---------------------------- */ @@ -128,8 +117,6 @@ #define btldr_down() ((AVR_BTLDR_EN_PORT &= ~(1 << AVR_BTLDR_EN_PIN)),\ (AVR_BTLDR_EN_PORT |= (1 << AVR_BTLDR_EN_PIN))) - - #define AVR_ADDR_UP_PORT PORTC #define AVR_ADDR_UP_DIR DDRC #define AVR_ADDR_UP_PIN PC0 @@ -181,6 +168,25 @@ #define snes_wr_enable() (SNES_WR_EN_PORT |= (1 << SNES_WR_EN_PIN)) +#define SNES_RESET_PORT PORTD +#define SNES_RESET_DIR DDRD +#define SNES_RESET_PIN PD3 + +#define snes_reset_on() (SNES_RESET_DIR |= (1 << SNES_RESET_PIN)) +#define snes_reset_hi() (SNES_RESET_PORT |= (1 << SNES_RESET_PIN)) + +#define snes_reset_off() (SNES_RESET_DIR &= ~(1 << SNES_RESET_PIN)) +#define snes_reset_lo() (SNES_RESET_PORT &= ~(1 << SNES_RESET_PIN)) + + +#define MMC_PORT PORTB +#define MMC_DIR DDRB + +#define MMC_MISO_PIN PB6 +#define MMC_MOSI_PIN PB5 +#define MMC_SCK_PIN PB7 +#define MMC_CS_PIN PB4 +