From 00632c1df2040d4ee30ff8a9420489f7adfe9963 Mon Sep 17 00:00:00 2001 From: hackbard Date: Wed, 12 Sep 2007 18:50:07 +0200 Subject: [PATCH] only foo --- betty/display.c | 4 +++- betty/display.h | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) 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 -- 2.39.2