You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

21 lines
354 B

#include <stdio.h>
#include <stdint.h>
#include <stddef.h>
#include <errno.h>
#undef errno
extern int errno;
#include "hal.h"
void _putchar(char c) {
hal_send((uint8_t*)&c, 1);
}
void _write(int fd, const void* ptr, size_t len) {
// Don't care about the fd. Just put everything on the UART console.
(void)fd;
hal_send(ptr, len);
}