small changes like connecting open gates of the '04 and '03

change hdd-spinup timer from 200ms to 400ms as this feels more stable
remove nop() comments
This commit is contained in:
Oliver Lehmann 2013-04-23 20:08:41 +00:00
parent 23cbdeea4d
commit 207bbafdea
6 changed files with 7390 additions and 7339 deletions

View File

@ -26,7 +26,7 @@
*/ */
/* /*
* $Id: wdc_drv_pata.c,v 1.11 2013/04/20 23:22:47 olivleh1 Exp $ * $Id: wdc_drv_pata.c,v 1.12 2013/04/23 20:08:41 olivleh1 Exp $
*/ */
#include "wdc_config.h" #include "wdc_config.h"
@ -327,7 +327,7 @@ uint8_t pata_init ()
{ {
/* is needed for some disks (for example Maxtor 6L080J4) */ /* is needed for some disks (for example Maxtor 6L080J4) */
_delay_ms ( 200 ); _delay_ms ( 400 );
uart_puts_p ( PSTR ( "Init start\n" ) ); uart_puts_p ( PSTR ( "Init start\n" ) );
while ( ( !pata_rdy() ) & pata_bsy() ); while ( ( !pata_rdy() ) & pata_bsy() );

View File

@ -26,7 +26,7 @@
*/ */
/* /*
* $Id: wdc_if_p8000.c,v 1.14 2013/04/22 20:03:42 olivleh1 Exp $ * $Id: wdc_if_p8000.c,v 1.15 2013/04/23 20:08:41 olivleh1 Exp $
*/ */
#include "wdc_config.h" #include "wdc_config.h"
@ -56,7 +56,6 @@ uint8_t wdc_read_data_from_p8k ( uint8_t *buffer, uint16_t count, uint8_t wdc_st
datacnt = 0; datacnt = 0;
port_info_set ( wdc_status ); port_info_set ( wdc_status );
while ( !isset_info_te() ) while ( !isset_info_te() )
/*nop();nop();*/
if ( isset_info_reset() ) if ( isset_info_reset() )
return 0; return 0;
while ( !isset_info_wdardy() ); while ( !isset_info_wdardy() );