2012-09-07 23:56:32 -04:00
|
|
|
#include <print.h>
|
|
|
|
#include <devices/pl011.h>
|
|
|
|
|
|
|
|
#include <devices/pl110.h>
|
|
|
|
#include <framebuffer.h>
|
|
|
|
|
|
|
|
struct fb myfb;
|
|
|
|
|
|
|
|
void video(void)
|
|
|
|
{
|
|
|
|
unsigned int x, y;
|
|
|
|
pl110_init(&myfb, 16);
|
|
|
|
x = 0, y = 0;
|
2012-09-08 00:42:23 -04:00
|
|
|
for (y=0; y<480; y++)
|
|
|
|
for (x=0; x<640; x++)
|
|
|
|
fb_write_pixel(&myfb, x, y, 0xff, 0x00, 0x00);
|
2012-09-07 23:56:32 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
int main(void)
|
|
|
|
{
|
|
|
|
print_init(&pl011_putc); //initialize the serial console
|
|
|
|
|
|
|
|
video();
|
|
|
|
|
|
|
|
print("hello, world!\n");
|
|
|
|
return 0;
|
|
|
|
}
|