Add SMFI console

This commit is contained in:
Jeremy Soller
2020-02-17 13:35:06 -07:00
parent 7c1e0508a9
commit 35462cb7a0
13 changed files with 99 additions and 49 deletions

View File

@@ -1,5 +1,7 @@
#include <stdio.h>
#include <board/smfi.h>
#ifdef SERIAL_DEBUGGER
#include <mcs51/8051.h>
#endif
@@ -10,6 +12,7 @@
int putchar(int c) {
unsigned char byte = (unsigned char)c;
smfi_debug(byte);
#ifdef SERIAL_DEBUGGER
SBUF = byte;
#endif