From f68ded99b569dbdc266fd6c3dc154659042d92de Mon Sep 17 00:00:00 2001 From: Oliver Lehmann Date: Tue, 29 May 2012 20:23:59 +0000 Subject: [PATCH] reformat --- .../P8000_WDC_Emulator/wdc_main.h | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/P8000_WDC_Emulator/P8000_WDC_Emulator/wdc_main.h b/P8000_WDC_Emulator/P8000_WDC_Emulator/wdc_main.h index ea0dee1..4a4c492 100644 --- a/P8000_WDC_Emulator/P8000_WDC_Emulator/wdc_main.h +++ b/P8000_WDC_Emulator/P8000_WDC_Emulator/wdc_main.h @@ -1,7 +1,7 @@ /* * P8000 WDC Emulator * - * $Id: wdc_main.h,v 1.2 2012/05/29 20:23:09 olivleh1 Exp $ + * $Id: wdc_main.h,v 1.3 2012/05/29 20:23:59 olivleh1 Exp $ * */ @@ -15,19 +15,19 @@ #define configure_port_data_read() DDR_DATA = 0x00 /* programs the DATA-Port as Input-only for reading from the P8000*/ #define configure_port_data_write() DDR_DATA = 0xff /* programs the DATA-Port as Out-only for writing to the P8000*/ -#define configure_pin_status0() DDR_INFO |= (1 << PIN_INFO_STATUS0) -#define configure_pin_status1() DDR_INFO |= (1 << PIN_INFO_STATUS1) -#define configure_pin_status2() DDR_INFO |= (1 << PIN_INFO_STATUS2) -#define configure_pin_astb() DDR_INFO |= (1 << PIN_INFO_ASTB) -#define configure_pin_te() DDR_INFO &= ~(1 << PIN_INFO_TE) -#define configure_pin_wdardy() DDR_INFO &= ~(1 << PIN_INFO_WDARDY) -#define configure_pin_tr() DDR_INFO |= (1 << PIN_INFO_TR) -#define configure_pin_reset() DDR_INFO &= ~(1 << PIN_INFO_RST) +#define configure_pin_status0() DDR_INFO |= (1 << PIN_INFO_STATUS0) +#define configure_pin_status1() DDR_INFO |= (1 << PIN_INFO_STATUS1) +#define configure_pin_status2() DDR_INFO |= (1 << PIN_INFO_STATUS2) +#define configure_pin_astb() DDR_INFO |= (1 << PIN_INFO_ASTB) +#define configure_pin_te() DDR_INFO &= ~(1 << PIN_INFO_TE) +#define configure_pin_wdardy() DDR_INFO &= ~(1 << PIN_INFO_WDARDY) +#define configure_pin_tr() DDR_INFO |= (1 << PIN_INFO_TR) +#define configure_pin_reset() DDR_INFO &= ~(1 << PIN_INFO_RST) -#define port_data_set(x) (PORT_DATA = x) -#define port_info_set(x) (PORT_INFO = x) -#define port_data_get(x) PIN_DATA -#define port_info_get(x) PIN_INFO +#define port_data_set(x) (PORT_DATA = x) +#define port_info_set(x) (PORT_INFO = x) +#define port_data_get(x) PIN_DATA +#define port_info_get(x) PIN_INFO /* input pin handling */ #define isset_info_reset() ((PIN_INFO) & (1 << PIN_INFO_RST)) @@ -40,7 +40,7 @@ #define INFO_ASTB (1 << PIN_INFO_ASTB) #define INFO_STAT_GCMD (1 << PIN_INFO_STATUS0) /* 0x01 */ -#define INFO_STAT_RDATA (a1 << PIN_INFO_STATUS1) /* 0x02 */ +#define INFO_STAT_RDATA (1 << PIN_INFO_STATUS1) /* 0x02 */ #define INFO_STAT_WDATA ((1 << PIN_INFO_STATUS0) | (1 << PIN_INFO_STATUS1)) /* 0x03 */ #define INFO_STAT_ERROR ((1 << PIN_INFO_STATUS0) | (1 << PIN_INFO_STATUS1) | (1 << PIN_INFO_STATUS2)) /* 0x07 */