X-Git-Url: https://hackdaworld.org/gitweb/?a=blobdiff_plain;f=betty%2Fuart.c;h=da9a3fa0611d536f566ede5f7643d8b2df56d8e9;hb=6292cc9190f6e7f36a3634057740e770d58d7460;hp=5760e3b45dd4467ec29b680ee6f26286ee1022b1;hpb=b4ca71fc214ba3c58cec25661ba1f81cf7b1b871;p=my-code%2Farm.git diff --git a/betty/uart.c b/betty/uart.c index 5760e3b..da9a3fa 100644 --- a/betty/uart.c +++ b/betty/uart.c @@ -13,9 +13,6 @@ void uart0_init(void) { - /* select pins 0.0 and 0.1 as tx and rx */ - PINSEL0=(PINSEL0&~(0xf))|0x05; - /* configure uart 0 */ UART0_FCR=0x07; // enable fifo UART0_LCR=0x83; // set dlab + word length @@ -38,14 +35,6 @@ void uart0_send_string(char *txbuf) { continue; } - /* flush if \n and \r do not fit in the tx buffer */ - if(i>14) - while(!(UART0_LSR&(1<<6))) - continue; - - UART0_THR='\n'; - UART0_THR='\r'; - /* flush uart0 anyways */ while(!(UART0_LSR&(1<<6))) continue;