MMC card reader on ECIO

For E-blocks user to discuss using E-blocks and programming for them.

Moderators: Benj, Mods

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: MMC card reader on ECIO

Post by Benj »

Ben, do I have to do any corrections to the file provided?
No the file will work as is in normal FAT16 only mode.
If I am going to use mode3 should I erase the other( 1 and 2)?
No you simply change the value of the definition at the top of the program. This change then automatically ripples through the code.
Also you are saying about commenting out this one:
This has been done for you in the later version of the component.

User avatar
achillis1
Posts: 347
Joined: Thu Oct 09, 2008 9:19 am
Has thanked: 91 times
Been thanked: 8 times

Re: MMC card reader on ECIO

Post by achillis1 »

Hello Ben,

When you said :
No you simply change the value of the definition at the top of the program. This change then automatically ripples through the code.
you meant to change the value at this line: #define MX_FAT_TYPE 0//%l //0-FAT16(FAT) / 1-FAT32 / 2-FAT16&32?

So if I want to work with mode 2 I will have to do this : #define MX_FAT_TYPE 0//%l //0-FAT16 / 1-FAT32(FAT) / 2-FAT16&32 ?

Thank you

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: MMC card reader on ECIO

Post by Benj »

Hello Achillis

If you want to work with mode 2 then you have to change the line to look klike this.

#define MX_FAT_TYPE 2

Or to change back to standard

#define MX_FAT_TYPE 0

The text after the comment "//" is simply showing what changing the value does and is not needed for the define to work.

User avatar
achillis1
Posts: 347
Joined: Thu Oct 09, 2008 9:19 am
Has thanked: 91 times
Been thanked: 8 times

Re: MMC card reader on ECIO

Post by achillis1 »

Off course! My mistake :oops: I am not so good at understanding programming language!

Thank you Ben.

Post Reply