SD card interface#137
Open
hwhw wants to merge 7 commits intorad1o:masterfrom
Open
Conversation
This introduces the SD card interface from LPCopen. It includes rad1o-specific setup code and a few minor changes to the LPCopen codebase to be able to properly include only the needed parts. All code provided by LPCopen is in the lpcapi subfolder.
This is mainly about the generic platform headers.
allows to access the SD card (in fact: the first 4GB of it!) via USB mass storage. Don't expect speed records.
This adds support for accessing a FAT filesystem on the SD card. Only one partition is supported (auto-detect mode). While partitions larger than 4GB might work, it is not suggested for now. Especially as the demo app for USB MSC access does not work on sectors over 4GB. Just use the USB MSC mode, then fdisk/mkfs on the host PC.
This also adds the necessary objects and a single define to enable SD support in fatfs. Use this as an example to make your rad1o app use files on an SD card.
Tests FAT FS performance, not raw SD I/O.
will destructively write to the first 100 MB (+2048 byte offset) of the SD card.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This introduces SD card interface and a (demo?) application that will present the first 4GB (limit of the USB driver in LPC4330 ROM) via USB mass storage.