1
0
Fork 0
forked from len0rd/rockbox

C99 booleans

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@568 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Linus Nielsen Feltzing 2002-05-13 19:22:38 +00:00
parent 32125d4dec
commit e14e13df5c

View file

@ -16,6 +16,7 @@
* KIND, either express or implied. * KIND, either express or implied.
* *
****************************************************************************/ ****************************************************************************/
#include <stdbool.h>
#include "ata.h" #include "ata.h"
#include "kernel.h" #include "kernel.h"
#include "led.h" #include "led.h"
@ -99,7 +100,7 @@ int ata_read_sectors(unsigned long start,
if (!wait_for_rdy()) if (!wait_for_rdy())
return -1; return -1;
led(TRUE); led(true);
ATA_NSECTOR = count; ATA_NSECTOR = count;
ATA_SECTOR = start & 0xff; ATA_SECTOR = start & 0xff;
@ -122,7 +123,7 @@ int ata_read_sectors(unsigned long start,
#endif #endif
} }
led(FALSE); led(false);
if(!wait_for_end_of_transfer()) if(!wait_for_end_of_transfer())
return -1; return -1;
@ -140,7 +141,7 @@ int ata_write_sectors(unsigned long start,
if (!wait_for_rdy()) if (!wait_for_rdy())
return 0; return 0;
led(TRUE); led(true);
ATA_NSECTOR = count; ATA_NSECTOR = count;
ATA_SECTOR = start & 0xff; ATA_SECTOR = start & 0xff;
@ -163,7 +164,7 @@ int ata_write_sectors(unsigned long start,
#endif #endif
} }
led(FALSE); led(false);
return wait_for_end_of_transfer(); return wait_for_end_of_transfer();
} }
@ -262,7 +263,7 @@ int ata_soft_reset(void)
int ata_init(void) int ata_init(void)
{ {
led(FALSE); led(false);
/* activate ATA */ /* activate ATA */
PADR &= ~0x80; PADR &= ~0x80;