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:
parent
32125d4dec
commit
e14e13df5c
1 changed files with 6 additions and 5 deletions
|
|
@ -16,6 +16,7 @@
|
|||
* KIND, either express or implied.
|
||||
*
|
||||
****************************************************************************/
|
||||
#include <stdbool.h>
|
||||
#include "ata.h"
|
||||
#include "kernel.h"
|
||||
#include "led.h"
|
||||
|
|
@ -99,7 +100,7 @@ int ata_read_sectors(unsigned long start,
|
|||
if (!wait_for_rdy())
|
||||
return -1;
|
||||
|
||||
led(TRUE);
|
||||
led(true);
|
||||
|
||||
ATA_NSECTOR = count;
|
||||
ATA_SECTOR = start & 0xff;
|
||||
|
|
@ -122,7 +123,7 @@ int ata_read_sectors(unsigned long start,
|
|||
#endif
|
||||
}
|
||||
|
||||
led(FALSE);
|
||||
led(false);
|
||||
|
||||
if(!wait_for_end_of_transfer())
|
||||
return -1;
|
||||
|
|
@ -140,7 +141,7 @@ int ata_write_sectors(unsigned long start,
|
|||
if (!wait_for_rdy())
|
||||
return 0;
|
||||
|
||||
led(TRUE);
|
||||
led(true);
|
||||
|
||||
ATA_NSECTOR = count;
|
||||
ATA_SECTOR = start & 0xff;
|
||||
|
|
@ -163,7 +164,7 @@ int ata_write_sectors(unsigned long start,
|
|||
#endif
|
||||
}
|
||||
|
||||
led(FALSE);
|
||||
led(false);
|
||||
|
||||
return wait_for_end_of_transfer();
|
||||
}
|
||||
|
|
@ -262,7 +263,7 @@ int ata_soft_reset(void)
|
|||
|
||||
int ata_init(void)
|
||||
{
|
||||
led(FALSE);
|
||||
led(false);
|
||||
|
||||
/* activate ATA */
|
||||
PADR &= ~0x80;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue