grex
Newbie level 2
- Joined
- Sep 28, 2004
- Messages
- 2
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Activity points
- 20
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.