From 57e01fb1b8464a2aacbb046172167eff8460f1f9 Mon Sep 17 00:00:00 2001 From: tixiv Date: Thu, 9 Jul 2009 14:03:30 +0000 Subject: [PATCH] configurable now --- ...borg_hw_pd1165_test.c => borg_hw_pd1165.c} | 30 ++++---- ...config_pd1165_test.in => config_pd1165.in} | 77 +++++++++++++------ 2 files changed, 68 insertions(+), 39 deletions(-) rename borg_hw/{borg_hw_pd1165_test.c => borg_hw_pd1165.c} (95%) rename borg_hw/{config_pd1165_test.in => config_pd1165.in} (52%) diff --git a/borg_hw/borg_hw_pd1165_test.c b/borg_hw/borg_hw_pd1165.c similarity index 95% rename from borg_hw/borg_hw_pd1165_test.c rename to borg_hw/borg_hw_pd1165.c index db1964f..235db4f 100644 --- a/borg_hw/borg_hw_pd1165_test.c +++ b/borg_hw/borg_hw_pd1165.c @@ -32,21 +32,23 @@ //#define COLDDR2 DDR(COLPORT2) //#define ROWDDR DDR(ROWPORT) -#define DATAPORT PORTC +//#define DATAPORT PORTC #define DATADDR DDR(DATAPORT) -#define ADDRPORT PORTA +//#define ADDRPORT PORTA #define ADDRDDR DDR(ADDRPORT) -#define CTRLPORT PORTD +//#define CTRLPORT PORTD #define CTRLDDR DDR(CTRLPORT) -#define BIT_CS0 2 -#define BIT_CS1 3 -#define BIT_CS2 4 -#define BIT_CS3 5 +#define RDIMDDR DDR(RDIMPORT) -#define BIT_RW 6 +//#define BIT_CS0 2 +//#define BIT_CS1 3 +//#define BIT_CS2 4 +//#define BIT_CS3 5 + +//#define BIT_RW 6 //Der Puffer, in dem das aktuelle Bild gespeichert wird unsigned char pixmap[NUMPLANE][NUM_ROWS][LINEBYTES]; @@ -195,10 +197,7 @@ SIGNAL(SIG_OUTPUT_COMPARE0) void timer0_off(){ cli(); - COLPORT1 = 0; - COLPORT2 = 0; - ROWPORT = 0; - + TCCR0 = 0x00; sei(); } @@ -268,12 +267,9 @@ void borg_hw_init(){ DDRD |= 1<