2012-09-07 23:56:32 -04:00
|
|
|
#include <print.h>
|
|
|
|
#include <devices/pl011.h>
|
|
|
|
|
2012-09-10 22:44:54 -04:00
|
|
|
#include <devices/pl111.h>
|
2012-09-07 23:56:32 -04:00
|
|
|
#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;
|
2012-09-10 22:44:54 -04:00
|
|
|
pl111_init(&myfb, 24);
|
2012-09-09 01:58:38 -04:00
|
|
|
// 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;
|
|
|
|
}
|