File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
src/mips/openbios/uC-sdk-glue Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 17
17
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. *
18
18
***************************************************************************/
19
19
20
+ #include <stddef.h>
20
21
#include <stdio.h>
21
22
#include "BoardConsole.h"
22
23
23
- #include "common/hardware/sio1.h"
24
+ static volatile char * portA = NULL ;
24
25
25
26
void BoardConsoleInit () {
26
- sio1_init () ;
27
+ portA = ( volatile char * ) 0x1f000000 ;
27
28
}
28
29
29
30
void BoardConsolePuts (const char * str ) {
30
31
char c ;
31
- while ((c = * str ++ )) sio1_putc ( c ) ;
32
+ while ((c = * str ++ )) * portA = c ;
32
33
}
33
34
34
35
void BoardConsolePutc (int c ) {
35
- sio1_putc ( c ) ;
36
+ * portA = c ;
36
37
}
37
38
38
39
static void xprintfCallback (const char * str , int strsize , void * opaque0 ) {
39
- while (strsize -- ) sio1_putc ( * str ++ ) ;
40
+ while (strsize -- ) * portA = * str ++ ;
40
41
}
41
42
42
43
void BoardConsolePrintf (const char * fmt , ...) {
You can’t perform that action at this time.
0 commit comments