litex/software/videomixer/main.c

29 lines
476 B
C
Raw Normal View History

2013-03-21 05:42:31 -04:00
#include <stdio.h>
#include <stdlib.h>
2013-03-21 05:42:31 -04:00
#include <irq.h>
#include <uart.h>
2013-04-14 10:33:00 -04:00
#include <hw/csr.h>
#include <hw/flags.h>
#include "dvisampler0.h"
#include "dvisampler1.h"
2013-03-21 05:42:31 -04:00
int main(void)
{
irq_setmask(0);
irq_setie(1);
uart_init();
puts("Minimal video mixer software built "__DATE__" "__TIME__"\n");
timer0_reload_write(2*identifier_frequency_read());
timer0_en_write(1);
dvisampler0_init_video();
fb_enable_write(1);
while(1) dvisampler0_service();
2013-03-21 05:42:31 -04:00
return 0;
}