Search
lxdream.org :: lxdream/src/sh4/scif.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/sh4/scif.c
changeset 32:bf0bc2c524b8
prev30:89b30313d757
next35:21a4be098304
author nkeynes
date Mon Dec 26 03:10:23 2005 +0000 (15 years ago)
permissions -rw-r--r--
last change Reset SCIF properly on SH4 reset
file annotate diff log raw
1.1 --- a/src/sh4/scif.c Sun Dec 25 05:57:00 2005 +0000
1.2 +++ b/src/sh4/scif.c Mon Dec 26 03:10:23 2005 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: scif.c,v 1.5 2005-12-25 05:57:00 nkeynes Exp $
1.6 + * $Id: scif.c,v 1.6 2005-12-26 03:10:23 nkeynes Exp $
1.7 * SCIF (Serial Communication Interface with FIFO) implementation - part of the
1.8 * SH4 standard on-chip peripheral set. The SCIF is hooked up to the DCs
1.9 * external serial port
1.10 @@ -443,7 +443,6 @@
1.11
1.12 if( serial_device != NULL && serial_device->set_line_speed != NULL )
1.13 serial_device->set_line_speed( baudrate );
1.14 - INFO( "SCIF baud rate set to %d", baudrate );
1.15
1.16 SCIF_tick_period = sh4_peripheral_period * (32 * mult * (bbr+1));
1.17
1.18 @@ -618,7 +617,9 @@
1.19
1.20 void SCIF_reset( void )
1.21 {
1.22 - SCIF_tick_remainder = 0;
1.23 + SCIF_recvq_clear();
1.24 + SCIF_sendq_clear();
1.25 + SCIF_update_line_speed();
1.26 }
1.27
1.28 void SCIF_run_slice( uint32_t nanosecs )
.