diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-08-19 16:28:55 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-08-19 16:28:55 +0000 |
commit | 56035ca340276e0b4e12af667a112403da066b55 (patch) | |
tree | 1887320682a3966ef782e363a719936ca73a632b /c/src/lib/libbsp/sparc/leon3/console/console.c | |
parent | 2009-08-19 Joel Sherrill <joel.sherrill@OARcorp.com> (diff) | |
download | rtems-56035ca340276e0b4e12af667a112403da066b55.tar.bz2 |
2009-08-19 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am, console/console.c, console/debugputs.c, include/bsp.h,
startup/setvec.c: Split idle method into its own file. Properly note
to confdefs.h that this BSP has its own idle thread. Also address use
of maximum termios constant in debug IO.
* startup/bspidle.S: New file.
Diffstat (limited to 'c/src/lib/libbsp/sparc/leon3/console/console.c')
-rw-r--r-- | c/src/lib/libbsp/sparc/leon3/console/console.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/c/src/lib/libbsp/sparc/leon3/console/console.c b/c/src/lib/libbsp/sparc/leon3/console/console.c index e1c07a9457..24009f52f1 100644 --- a/c/src/lib/libbsp/sparc/leon3/console/console.c +++ b/c/src/lib/libbsp/sparc/leon3/console/console.c @@ -95,11 +95,12 @@ int scan_uarts(void) { amba_apb_device apbuarts[LEON3_APBUARTS]; if (isinit == 0) { - i = 0; uarts = 0; + i = 0; + uarts = 0; uarts = amba_find_apbslvs( &amba_conf, VENDOR_GAISLER, GAISLER_APBUART, apbuarts, LEON3_APBUARTS); - for(i=0; i<uarts; i++){ + for(i=0; i<uarts; i++) { LEON3_Console_Uart[i] = (volatile LEON3_UART_Regs_Map *)apbuarts[i].start; } isinit = 1; |