FAT File System for Microcontroller

Status
Not open for further replies.
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.
 

file system microcontroller


*((volatile unsigned char*) ATA_REG_BASE + reg)

Is a pointer to the AVR I/O space , with reg as offset,

So that is the line that reads the I/O port , nad assigns the value to the var "ret"

/Bingo
 

8051 fat

Hello,
you can get ucos from emule , just search for it.
I don't know if all ucos versions got the fs or not, but
u can get ucos for all controllers from emule.
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…