aboutsummaryrefslogtreecommitdiffstats
path: root/firmware/microblaze/lib/hal_io.c
diff options
context:
space:
mode:
authorNick Foster <nick@nerdnetworks.org>2010-08-11 14:20:50 -0700
committerNick Foster <nick@nerdnetworks.org>2010-08-11 14:20:50 -0700
commitdfafbd5f2dbf0758df33d10922eec3c1a37dd32b (patch)
tree52b41ba41c66da558e4279f873ccfce3fb821354 /firmware/microblaze/lib/hal_io.c
parent1c237e7c8aba280e79b381bcdece68e828d24a04 (diff)
downloaduhd-dfafbd5f2dbf0758df33d10922eec3c1a37dd32b.tar.gz
uhd-dfafbd5f2dbf0758df33d10922eec3c1a37dd32b.tar.bz2
uhd-dfafbd5f2dbf0758df33d10922eec3c1a37dd32b.zip
Branch to make use of quad UART on USRP2P.
Diffstat (limited to 'firmware/microblaze/lib/hal_io.c')
-rw-r--r--firmware/microblaze/lib/hal_io.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/firmware/microblaze/lib/hal_io.c b/firmware/microblaze/lib/hal_io.c
index 58b1e681e..b68067308 100644
--- a/firmware/microblaze/lib/hal_io.c
+++ b/firmware/microblaze/lib/hal_io.c
@@ -102,7 +102,7 @@ hal_finish(void)
// %c
inline int
-putchar(int ch)
+fputchar(int ch)
{
hal_gpio_set_rx((s << 8) | W, 0xff80);
hal_gpio_set_rx(0, 0xff80);
@@ -124,14 +124,14 @@ hal_finish(void)
// %c
inline int
-putchar(int ch)
+fputchar(int ch)
{
hal_uart_putc(ch);
return ch;
}
int
-getchar(void)
+fgetchar(void)
{
return hal_uart_getc();
}
@@ -172,13 +172,13 @@ getchar(void)
// \n
inline void
-newline(void)
+fnewline(void)
{
putchar('\n');
}
int
-putstr(const char *s)
+fputstr(const char *s)
{
while (*s)
putchar(*s++);
@@ -187,7 +187,7 @@ putstr(const char *s)
}
int
-puts(const char *s)
+fputs(const char *s)
{
putstr(s);
putchar('\n');
@@ -195,7 +195,7 @@ puts(const char *s)
}
char *
-gets(char * const s)
+fgets(char * const s)
{
char *x = s;
while((*x=(char)hal_uart_getc()) != '\n') x++;