Getting used to UART. This does simply receive using DMA.
Put UART init and interrupt into Uart2.c and Uart2.h
Put DMA stuff with Uart2 library. DMA is now in ping-pong mode.
Finished ping-pong buffer with user-defined interrupt func.
Uart2Init() now takes a user-defined function pointer which is called when
a pin-pong buffer is full. main.c has an example.
Copied many files from other folders into NewUARTDriver to support Service_SPI.
Plugged old SPI and Filesystem stuff into new UART using OFBProxy to give Service_SPI() something to use.
Added NewSDWrite to use unmodified FSIO functions to write to SD.
This now correctly writes to the SD card using the unmodified library.
Successfully writes multiple sectors into a single cluster. Hacks the FSIO lib.
Added allocate_multiple_clusters and used it. Doesn't quite work correctly yet with skipping over used clusters.
Now works with other files in the card and with multiple clusters.
Added a single-shot sector-write function which does not currently work.
NewSDWriteSector now works correctly. This easily allows writing a single sectors at a time to a file.
Added new SDWrite functions to more versatile. They don't currently work. Updated the todo list.
NewSDWriteSector and NewSDInit now work correctly using the function NewFileUpdate which mimics FSfclose.
Reworked file orgnization, removed unused files, removed some unused functions.
Added TODO.TXT
More reworking of file system. Redownloaded Microchip lib and removed all old library code.
Implemented Bryant's circular buffer to work with the UART. It kinda works. Only writes up to 33kb.
Still getting 33k error, now has debug code. Added debug folder with interesting UART output. Seems there is a problem transitioning between clusters.