minix/kernel/arch/earm/direct_tty_utils.c

31 lines
381 B
C
Raw Normal View History

2012-10-08 03:38:03 +02:00
#include "kernel/kernel.h"
2012-10-08 03:38:03 +02:00
#include "direct_utils.h"
#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')
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;
}