Skip to content

Commit 8c506ab

Browse files
committed
Using FT2232H as the console for now.
1 parent 7004583 commit 8c506ab

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/mips/openbios/uC-sdk-glue/BoardConsole.c

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,26 +17,27 @@
1717
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. *
1818
***************************************************************************/
1919

20+
#include <stddef.h>
2021
#include <stdio.h>
2122
#include "BoardConsole.h"
2223

23-
#include "common/hardware/sio1.h"
24+
static volatile char * portA = NULL;
2425

2526
void BoardConsoleInit() {
26-
sio1_init();
27+
portA = (volatile char*) 0x1f000000;
2728
}
2829

2930
void BoardConsolePuts(const char * str) {
3031
char c;
31-
while ((c = *str++)) sio1_putc(c);
32+
while ((c = *str++)) *portA = c;
3233
}
3334

3435
void BoardConsolePutc(int c) {
35-
sio1_putc(c);
36+
*portA = c;
3637
}
3738

3839
static void xprintfCallback(const char * str, int strsize, void * opaque0) {
39-
while (strsize--) sio1_putc(*str++);
40+
while (strsize--) *portA = *str++;
4041
}
4142

4243
void BoardConsolePrintf(const char * fmt, ...) {

0 commit comments

Comments
 (0)