2 * display.c - handling the display
4 * author: hackbard@hackdaworld.org
14 void display_clear_screen(void) {
18 DISPLAY_SET_PAGE_ADDR(0);
19 DISPLAY_SET_C_ADDR(0);
21 for(cnt=0;cnt<DISPLAY_RAM_CONTENT;cnt++)
25 void display_init(void) {
27 /* configure the ext mem bank interface */
30 DISPLAY_EXIT_POWER_SAVE;
32 /* reset the display, wait until its up again */
36 DISPLAY_START_OSCILLATOR;
38 DISPLAY_SET_POWER(DISPLAY_V_BOOST|DISPLAY_REGULATOR);
40 display_clear_screen();
45 void display_load_logo(u8 *src) {
49 DISPLAY_SET_PAGE_ADDR(0);
50 DISPLAY_SET_C_ADDR(0);
52 for(cnt=0;cnt<DISPLAY_RAM_CONTENT;cnt++)
53 DISPLAY_DATA=src[cnt];
56 void display_bl_init(void) {
58 PINSEL0&=~(1<<9|(1<<8));
62 void display_bl_toggle(void) {
70 void display_bl_on(void) {
75 void display_bl_off(void) {