Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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

grex said:
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.

*((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

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top