2 * fwbc.c - broadcast the betty tv original firmware via uart0
3 * use fwdump to write it onto your computers harddisk
5 * author: hackbard@hackdaworld.org
11 #define OSC_CLOCK 10000000
14 #define P_CLOCK (OSC_CLOCK/P_DIV)
16 typedef unsigned char u8;
17 typedef unsigned int u32;
26 void mmap_init(u8 memtype) {
31 void uart0_init(void) {
33 /* pin select -> tx rx */
39 /* set dlab + word length */
42 /* set baud rate to 9600 @ 10/4 mhz */
50 void uart_send(char *txbuf) {
61 while(!(UART0_LSR&(1<<6))) {}
66 char txbuf[]="uart0 working";
68 /* memory mapping of interrupt vectors to static ram */