only foo
authorhackbard <hackbard@sage.physik.uni-augsburg.de>
Wed, 12 Sep 2007 16:50:07 +0000 (18:50 +0200)
committerhackbard <hackbard@sage.physik.uni-augsburg.de>
Wed, 12 Sep 2007 16:50:07 +0000 (18:50 +0200)
betty/display.c
betty/display.h

index fad0804..1d6af1a 100644 (file)
@@ -27,8 +27,10 @@ void display_init(void) {
        /* configure the ext mem bank interface */
        BCFG1=0x00000c42;
 
-       DISPLAY_SOFT_RESET;
+       DISPLAY_EXIT_POWER_SAVE;
 
+       /* reset the display, wait until its up again */
+       DISPLAY_SOFT_RESET;
        pause(0xffffff);
 
        DISPLAY_START_OSCILLATOR;
index b458887..0706af3 100644 (file)
@@ -23,6 +23,7 @@
 #define DISPLAY_COL_MAX                        DISPLAY_DIMX
 #define DISPLAY_RAM_CONTENT            (DISPLAY_PAGE_MAX*DISPLAY_COL_MAX*2)
 
+/* display cmds */
 #define DISPLAY_SET_C_ADDR(c)          DISPLAY_CMD=(0x00|((c)&0x0f)); \
                                        DISPLAY_CMD=(0x10|(((c)&0x70)>>4))
 #define DISPLAY_SET_MASTER             DISPLAY_CMD=0x18