-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add sdio driver #2
Open
mmahadevan108
wants to merge
8
commits into
ARMmbed:master
Choose a base branch
from
nxp-archive:Add_SDIO_LPC55S69
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Commits on Feb 19, 2019
-
Took the work done as part of PR ARMmbed/mbed-os#8634 Signed-off-by: Mahesh Mahadevan <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 7fb810f - Browse repository at this point
Copy the full SHA 7fb810fView commit details -
Add SDIO support for NXP LPC55S69
Tested this with the block device test inside features-storage-tests-blockdevice-general_block_device Below was the change made to add SDIO test --- a/features/storage/TESTS/blockdevice/general_block_device/main.cpp +++ b/features/storage/TESTS/blockdevice/general_block_device/main.cpp @@ -47,6 +47,8 @@ #include "FlashIAPBlockDevice.h" #endif +#include "SDIOBlockDevice.h" + using namespace utest::v1; #define TEST_BLOCK_COUNT 10 @@ -69,6 +71,7 @@ enum bd_type { dataflash, sd, flashiap, + sdio, default_bd }; @@ -90,6 +93,11 @@ static inline uint32_t align_up(uint32_t val, uint32_t size) static BlockDevice *get_bd_instance(uint8_t bd_type) { switch (bd_arr[bd_type]) { + case sdio: { + static SDIOBlockDevice default_bd(P0_17); + return &default_bd; + break; + } case spif: { #if COMPONENT_SPIF static SPIFBlockDevice default_bd( @@ -632,6 +640,8 @@ void test_get_type_functionality() const char *bd_type = block_device->get_type(); TEST_ASSERT_NOT_EQUAL(0, bd_type); + TEST_ASSERT_EQUAL(0, strcmp(bd_type, "SDIO")); + #if COMPONENT_QSPIF TEST_ASSERT_EQUAL(0, strcmp(bd_type, "QSPIF")); #elif COMPONENT_SPIF @@ -708,10 +718,12 @@ int get_bd_count() bd_arr[count++] = flashiap; //4 #endif + bd_arr[count++] = sdio; //5 + return count; } -static const char *prefix[] = {"SPIF ", "QSPIF ", "DATAFLASH ", "SD ", "FLASHIAP ", "DEFAULT "}; +static const char *prefix[] = {"SPIF ", "QSPIF ", "DATAFLASH ", "SD ", "FLASHIAP ", "SDIO ", "DEFAULT "}; int main() { Signed-off-by: Mahesh Mahadevan <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 370c51a - Browse repository at this point
Copy the full SHA 370c51aView commit details
Commits on Aug 9, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 5de416e - Browse repository at this point
Copy the full SHA 5de416eView commit details -
Configuration menu - View commit details
-
Copy full SHA for ccf66b7 - Browse repository at this point
Copy the full SHA ccf66b7View commit details -
Configuration menu - View commit details
-
Copy full SHA for d5b72eb - Browse repository at this point
Copy the full SHA d5b72ebView commit details
Commits on Aug 23, 2019
-
maclobdell committed
Aug 23, 2019 Configuration menu - View commit details
-
Copy full SHA for 3400e1a - Browse repository at this point
Copy the full SHA 3400e1aView commit details
Commits on Sep 12, 2019
-
Merge pull request #1 from mathias-arm/NXPmicro
Remove some warnings
Configuration menu - View commit details
-
Copy full SHA for 34d6644 - Browse repository at this point
Copy the full SHA 34d6644View commit details -
Merge pull request #2 from maclobdell/sdio_lpc55s69_add_default
add get_default_instance
Configuration menu - View commit details
-
Copy full SHA for e14d354 - Browse repository at this point
Copy the full SHA e14d354View commit details
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.