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 */
34 DISPLAY_START_OSCILLATOR;
36 DISPLAY_SET_POWER(DISPLAY_V_BOOST|DISPLAY_REGULATOR);
38 display_clear_screen();
43 void display_load_logo(u8 *src) {
47 DISPLAY_SET_PAGE_ADDR(0);
48 DISPLAY_SET_C_ADDR(0);
50 for(cnt=0;cnt<DISPLAY_RAM_CONTENT;cnt++)
51 DISPLAY_DATA=src[cnt];
54 void display_bl_init(void) {
56 PINSEL0&=~(1<<9|(1<<8));
60 void display_bl_toggle(void) {
68 void display_bl_on(void) {
73 void display_bl_off(void) {