OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [orpmon/] [common/] [screen.c] - Diff between revs 810 and 817

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 810 Rev 817
Line 79... Line 79...
void screen_init () {
void screen_init () {
  SET_PALLETE(COLOR_BLACK, 0, 0, 0);
  SET_PALLETE(COLOR_BLACK, 0, 0, 0);
  SET_PALLETE(COLOR_WHITE, 255, 255, 255);
  SET_PALLETE(COLOR_WHITE, 255, 255, 255);
 
 
  /* Set screen offset */
  /* Set screen offset */
  *((unsigned long *)CRT_BUFFER_REG) = FB_BASE_ADD;
  *((unsigned long *)CRT_BUFFER_REG) = FB_BASE_ADDR;
 
 
  /* Turn screen on */
  /* Turn screen on */
  *((unsigned long *)CRT_REG) = 0x00000001;
  *((unsigned long *)CRT_REG) = 0x00000001;
}
}
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.