blob: 6728ab1666e29dd2ad8e3f49b95e93c400ffd4f6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#include "device/uart.h"
#include "device/portio_uart.h"
void
uart_write(objdir_t *dir, uint64_t entryi, const char *s, size_t w)
{
objdir_entry_t *entry = objdir_seek(dir, entryi);
if(entry == NULL || entry->type != KO_DEV_UART) return;
#ifdef ENABLE_PORTIO_UART
portio_uart_write(entry->data, s, w);
#endif
}
|