From db22b587966b4a4eaa47536f32ca812532446bcb Mon Sep 17 00:00:00 2001 From: Michal Idziorek Date: Mon, 18 May 2015 00:48:07 +0200 Subject: heavy refactoring underway --- driver/console.c | 33 ++++++++++++++++----------------- 1 file changed, 16 insertions(+), 17 deletions(-) (limited to 'driver/console.c') diff --git a/driver/console.c b/driver/console.c index b6958c5..fcbf6e1 100644 --- a/driver/console.c +++ b/driver/console.c @@ -36,7 +36,6 @@ static void print_char_col(int x, int y, char c, char col) // glue func for vt52 terminal void console_put_char(uint8_t c,uint8_t color, uint32_t x, uint32_t y) { - print_char_col(x,y,c, color); } // @@ -132,22 +131,6 @@ static void scr_nextline() #endif } -static void scr_put_char(char ch,char col) -{ - - if(ch=='\n')scr_nextline(); - else if(posx=SCR_WIDTH)scr_nextline(); -#endif - -} - /* void scr_put_hex(uint16_t val) { @@ -178,6 +161,22 @@ void scr_put_hex32(uint32_t val) } */ +static void scr_put_char(char ch,char col) +{ + + if(ch=='\n')scr_nextline(); + else if(posx=SCR_WIDTH)scr_nextline(); +#endif + +} + static void scr_put_string(char *str, char col) { while(*str!=0) -- cgit v1.2.3