7e11828c6e
Created a new directory called bsp (board support package) to hold board or system on chip specific code. The idea is the following. Change-Id: Ica5886806940facae2fa5492fcc938b3c2b989be
30 lines
381 B
C
30 lines
381 B
C
|
|
#include "kernel/kernel.h"
|
|
#include "direct_utils.h"
|
|
#include "bsp_serial.h"
|
|
#include "glo.h"
|
|
|
|
void direct_cls(void)
|
|
{
|
|
/* Do nothing */
|
|
}
|
|
|
|
void direct_print_char(char c)
|
|
{
|
|
if(c == '\n')
|
|
bsp_ser_putc('\r');
|
|
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;
|
|
}
|