2012-09-07 23:56:32 -04:00
|
|
|
#include <print.h>
|
|
|
|
#include <devices/pl011.h>
|
|
|
|
|
|
|
|
#include <devices/pl110.h>
|
|
|
|
#include <framebuffer.h>
|
2012-09-09 01:58:38 -04:00
|
|
|
#include <console.h>
|
2012-09-07 23:56:32 -04:00
|
|
|
|
|
|
|
struct fb myfb;
|
|
|
|
|
2012-09-09 01:58:38 -04:00
|
|
|
void video(void) {
|
|
|
|
// unsigned int x, y;
|
|
|
|
pl110_init(&myfb, 24);
|
|
|
|
// x = 0, y = 0;
|
|
|
|
// for (y=0; y<480; y++)
|
|
|
|
// for (x=0; x<640; x++)
|
|
|
|
// fb_write_pixel(&myfb, x, y, 0x3f, 0x0, 0x6f);
|
|
|
|
console_init(&myfb);
|
2012-09-07 23:56:32 -04:00
|
|
|
}
|
|
|
|
|
2012-09-09 01:58:38 -04:00
|
|
|
int main(void) {
|
2012-09-07 23:56:32 -04:00
|
|
|
print_init(&pl011_putc); //initialize the serial console
|
|
|
|
|
|
|
|
video();
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|