diff options
Diffstat (limited to '')
-rw-r--r-- | c/src/lib/libbsp/m68k/mcf5235/ChangeLog | 7 | ||||
-rw-r--r-- | c/src/lib/libbsp/m68k/mcf5235/console/console.c | 14 | ||||
-rw-r--r-- | c/src/lib/libbsp/m68k/mcf5235/gdb-init | 29 |
3 files changed, 50 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/m68k/mcf5235/ChangeLog b/c/src/lib/libbsp/m68k/mcf5235/ChangeLog index 17f1f61cde..f891c63592 100644 --- a/c/src/lib/libbsp/m68k/mcf5235/ChangeLog +++ b/c/src/lib/libbsp/m68k/mcf5235/ChangeLog @@ -1,3 +1,10 @@ +2007-12-03 Chris Johns <chrisj@rtems.org> + + * console/console.c: Set the baud rate for stdin to 19200 when + opening the console. This is the default rate for the dbug + monitor. + * gdb-init: New. + 2007-11-26 Joel Sherrill <joel.sherrill@oarcorp.com> * startup/bspstart.c: Eliminate the interrupt_vector_table field in the diff --git a/c/src/lib/libbsp/m68k/mcf5235/console/console.c b/c/src/lib/libbsp/m68k/mcf5235/console/console.c index dc81a0c574..5a8725310d 100644 --- a/c/src/lib/libbsp/m68k/mcf5235/console/console.c +++ b/c/src/lib/libbsp/m68k/mcf5235/console/console.c @@ -722,6 +722,20 @@ rtems_device_driver console_open( } } + if (status == RTEMS_SUCCESSFUL) + { + /* + * Reset the default baudrate. + */ + struct termios term; + if (tcgetattr (STDIN_FILENO, &term) >= 0) + { + term.c_cflag &= ~(CBAUD | CSIZE); + term.c_cflag |= CS8 | B19200; + tcsetattr (STDIN_FILENO, TCSANOW, &term); + } + } + return( status ); } diff --git a/c/src/lib/libbsp/m68k/mcf5235/gdb-init b/c/src/lib/libbsp/m68k/mcf5235/gdb-init new file mode 100644 index 0000000000..bda3cccaaa --- /dev/null +++ b/c/src/lib/libbsp/m68k/mcf5235/gdb-init @@ -0,0 +1,29 @@ +# +# Connect to the target. +# +target remote | m68k-bdm-gdbserver pipe /dev/bdmcf0 + +# +# The console loop the Axman dbug monitor. Found by trial and error +# with the debugger. +# +hb *0xffe254c0 + +# +# Run to initialise the RAM. The target will stop when the +# breakpoint is hit. Load the program. +# +c +load + +# +# Break on an exception. +# +b _uhoh + +# +# Travel to main then stop. +# +tb main +c + |