From: hackbard Date: Wed, 12 Sep 2007 16:50:07 +0000 (+0200) Subject: only foo X-Git-Url: https://hackdaworld.org/gitweb/?a=commitdiff_plain;h=00632c1df2040d4ee30ff8a9420489f7adfe9963;p=my-code%2Farm.git only foo --- diff --git a/betty/display.c b/betty/display.c index fad0804..1d6af1a 100644 --- a/betty/display.c +++ b/betty/display.c @@ -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; diff --git a/betty/display.h b/betty/display.h index b458887..0706af3 100644 --- a/betty/display.h +++ b/betty/display.h @@ -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