grex
Newbie level 2
fat32 system + 8051
I´m trying to use the avrlib fat and ata files, but don´t know how to configure the pins of a atmega161, does anybody know how to configure the pin out??
The function that reads from the port is
u08 ataReadByte(u08 reg)
{
register u08 ret;
// sbi(MCUCR, SRW); // enable RAM waitstate
ret = *((volatile unsigned char*) ATA_REG_BASE + reg);
// cbi(MCUCR, SRW); // disable RAM waitstate
return ret;
}
but i dont know what ret = *((volatile unsigned char*) ATA_REG_BASE + reg); mean.
I´m trying to use the avrlib fat and ata files, but don´t know how to configure the pins of a atmega161, does anybody know how to configure the pin out??
The function that reads from the port is
u08 ataReadByte(u08 reg)
{
register u08 ret;
// sbi(MCUCR, SRW); // enable RAM waitstate
ret = *((volatile unsigned char*) ATA_REG_BASE + reg);
// cbi(MCUCR, SRW); // disable RAM waitstate
return ret;
}
but i dont know what ret = *((volatile unsigned char*) ATA_REG_BASE + reg); mean.