2012-10-08 03:38:03 +02:00
|
|
|
|
2012-11-15 12:06:41 +01:00
|
|
|
#include "kernel/kernel.h"
|
2012-10-08 03:38:03 +02:00
|
|
|
#include "direct_utils.h"
|
2014-02-07 08:46:29 +01:00
|
|
|
#include "bsp_serial.h"
|
2012-10-08 03:38:03 +02:00
|
|
|
#include "glo.h"
|
|
|
|
|
|
|
|
void direct_cls(void)
|
|
|
|
{
|
|
|
|
/* Do nothing */
|
|
|
|
}
|
|
|
|
|
|
|
|
void direct_print_char(char c)
|
|
|
|
{
|
|
|
|
if(c == '\n')
|
2014-02-07 08:46:29 +01:00
|
|
|
bsp_ser_putc('\r');
|
2012-10-08 03:38:03 +02:00
|
|
|
ser_putc(c);
|
|
|
|
}
|
|
|
|
|
|
|
|
void direct_print(const char *str)
|
|
|
|
{
|
|
|
|
while (*str) {
|
|
|
|
direct_print_char(*str);
|
|
|
|
str++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
int direct_read_char(unsigned char *ch)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|