]> hackdaworld.org Git - my-code/arm.git/commitdiff
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 fad0804e5a5bfc477885791db874dbcf14d4247b..1d6af1a0eb2ae2785a9af75d7e1bbfed9f990a4c 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 b4588873ec29034e260981f804c73b80ef36118e..0706af3375078a2843ba4f41ed8495dc14f9a94f 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