diff options
author | Josh Blum <josh@joshknows.com> | 2010-08-04 11:11:06 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-08-04 11:11:06 -0700 |
commit | fe622fb28654e6a578395d7b688e7c1958d373be (patch) | |
tree | c4cad6eb4c77895ddbc7bf8b297f4c115e6c52f7 /firmware/microblaze/lib/hal_io.c | |
parent | ee32fa2290f8b6abe83f1b8b33aff922f9d1e24c (diff) | |
parent | 4240d5a2a1b705fe8ed5c3a1d1deef24be00d444 (diff) | |
download | uhd-fe622fb28654e6a578395d7b688e7c1958d373be.tar.gz uhd-fe622fb28654e6a578395d7b688e7c1958d373be.tar.bz2 uhd-fe622fb28654e6a578395d7b688e7c1958d373be.zip |
Merge branch 'fw_reorg'
Diffstat (limited to 'firmware/microblaze/lib/hal_io.c')
-rw-r--r-- | firmware/microblaze/lib/hal_io.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/firmware/microblaze/lib/hal_io.c b/firmware/microblaze/lib/hal_io.c index 0afd6a2cc..58b1e681e 100644 --- a/firmware/microblaze/lib/hal_io.c +++ b/firmware/microblaze/lib/hal_io.c @@ -193,3 +193,13 @@ puts(const char *s) putchar('\n'); return 0; } + +char * +gets(char * const s) +{ + char *x = s; + while((*x=(char)hal_uart_getc()) != '\n') x++; + *x = 0; + return s; +} + |