FAT16 support - free library?

n1vg wrote on Thursday, March 17, 2005:

I’m not sure this is something that belongs in FreeRTOS itself, though it seems to be a feature in some commercial RTOSes.

I’m developing an application that needs to access a FAT16-formatted SD/MMC card.  I’ve got the card interface written - I can read data, find the boot record, find the FAT, read the directory, and so on.  Reading a file wouldn’t be too much more work.

Trouble is, doing a quick one-off implementation is always a whole lot easier than writing clean, consistent code that’s safe and efficient to use in a multitasking system, and that’s what I’m going to need.

So before I totally re-invent the wheel (or re-write MS-DOS =]), does anyone know of any existing, freely distributable library that’d do this, or at least provide a good starting point?

Scott

nobody wrote on Thursday, March 17, 2005:

Maybe the FreeDOS code would be ok?

http://www.FreeDOS.org

n1vg wrote on Thursday, March 17, 2005:

Hmm… maybe not directly, looks a bit heavy… but it could serve as a template, at least.  I’ll look it over.