diff options
author | Joel Sherrill <joel.sherrill@oarcorp.com> | 2014-12-14 16:27:06 -0600 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@oarcorp.com> | 2015-01-04 13:44:57 -0600 |
commit | 7cdabc49ca3828c9aeeb6beca4a0beeb71bf23f1 (patch) | |
tree | 128664532dfebd50115c56f7c94d206c482a6c5e /c/src/lib/libbsp/i386/pc386/console/printk_support.c | |
parent | untar.c: Coverity ID 26151 and reformat (diff) | |
download | rtems-7cdabc49ca3828c9aeeb6beca4a0beeb71bf23f1.tar.bz2 |
pc386: Add Edison base support
The current support for the Edison supports a single polled
UART for input and output plus a simulated clock tick. The
activities forward for supporting the Edison have been posted
on the RTEMS mailing lists and at:
http://rtemsramblings.blogspot.com/2014/12/intel-edison-and-rtems-road-forward.html
Diffstat (limited to '')
-rw-r--r-- | c/src/lib/libbsp/i386/pc386/console/printk_support.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/i386/pc386/console/printk_support.c b/c/src/lib/libbsp/i386/pc386/console/printk_support.c index c6b0fe5c00..d4adf555e7 100644 --- a/c/src/lib/libbsp/i386/pc386/console/printk_support.c +++ b/c/src/lib/libbsp/i386/pc386/console/printk_support.c @@ -29,6 +29,11 @@ rtems_device_minor_number BSPPrintkPort = 0; +#if (BSP_IS_EDISON == 1) +void edison_write_polled(int minor, char cChar); /* XXX */ +int edison_inbyte_nonblocking_polled(int minor); +#endif + #if BSP_ENABLE_COM1_COM4 int ns16550_inbyte_nonblocking_polled( int minor ); #endif @@ -66,6 +71,11 @@ int BSP_inch(void) } while (result == -1); } #endif + #if (BSP_IS_EDISON == 1) + do { + result = edison_inbyte_nonblocking_polled( BSPPrintkPort ); + } while (result == -1); + #endif return result; } |