1*433d6423SLionel Sambuc 2*433d6423SLionel Sambuc #include "kernel/kernel.h" 3*433d6423SLionel Sambuc #include "direct_utils.h" 4*433d6423SLionel Sambuc #include "bsp_serial.h" 5*433d6423SLionel Sambuc #include "glo.h" 6*433d6423SLionel Sambuc direct_cls(void)7*433d6423SLionel Sambucvoid direct_cls(void) 8*433d6423SLionel Sambuc { 9*433d6423SLionel Sambuc /* Do nothing */ 10*433d6423SLionel Sambuc } 11*433d6423SLionel Sambuc direct_print_char(char c)12*433d6423SLionel Sambucvoid direct_print_char(char c) 13*433d6423SLionel Sambuc { 14*433d6423SLionel Sambuc if(c == '\n') 15*433d6423SLionel Sambuc bsp_ser_putc('\r'); 16*433d6423SLionel Sambuc ser_putc(c); 17*433d6423SLionel Sambuc } 18*433d6423SLionel Sambuc direct_print(const char * str)19*433d6423SLionel Sambucvoid direct_print(const char *str) 20*433d6423SLionel Sambuc { 21*433d6423SLionel Sambuc while (*str) { 22*433d6423SLionel Sambuc direct_print_char(*str); 23*433d6423SLionel Sambuc str++; 24*433d6423SLionel Sambuc } 25*433d6423SLionel Sambuc } 26*433d6423SLionel Sambuc direct_read_char(unsigned char * ch)27*433d6423SLionel Sambucint direct_read_char(unsigned char *ch) 28*433d6423SLionel Sambuc { 29*433d6423SLionel Sambuc return 0; 30*433d6423SLionel Sambuc } 31