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

  1. #include <stdio.h>
  2. #include <stdint.h>
  3. #include <stddef.h>
  4. #include <errno.h>
  5. #undef errno
  6. extern int errno;
  7. #include "hal.h"
  8. void _putchar(char c) {
  9. hal_send((uint8_t*)&c, 1);
  10. }
  11. void _write(int fd, const void* ptr, size_t len) {
  12. // Don't care about the fd. Just put everything on the UART console.
  13. (void)fd;
  14. hal_send(ptr, len);
  15. }