Commit Graph

41 Commits (25652a50cdee01b5d72d543f1a9088f808eed3d3)

Author SHA1 Message Date
Deepika 25652a50cd Replaced busy wait while loop with timers 2017-06-23 15:37:26 -05:00
Deepika df8e085ee3 Proper response and error handling done 2017-06-23 13:03:24 -05:00
Deepika 22d7e4063f Multiple block write command added 2017-06-22 11:08:22 -05:00
Deepika f066339b80 Multiple block read command added 2017-06-21 16:19:46 -05:00
Deepika ae280d99e1 pulled in capacity issue changes 2017-06-21 15:04:49 -05:00
Deepika 99f3d25f44 Removed hardcoded values for block size 2017-06-21 15:00:47 -05:00
Deepika c890e0cfc7 Updated Init function
Modified initialization flow as per spec diag 7-2
Keep track of card status
block size supported is 512 bytes
Updated read/write functions to use correct block size
2017-06-21 14:16:28 -05:00
Deepika 547da1b24c Using _cmd for _go_idle_state funciton 2017-06-21 12:16:22 -05:00
Deepika e68d54efd0 Replaced _cmd58 with common _cmd function 2017-06-21 11:21:45 -05:00
Deepika e10c59d134 Added response type handling for _cmd 2017-06-21 11:11:47 -05:00
Deepika 27ceeee5b5 Single command function call for all commands supported
5. Separated SPI functionality in different function call.
6. Used enums for existing commands using _cmd function.
2017-06-21 10:56:39 -05:00
Deepika fbd1faf0b1 Single command function call for all commands supported.
1. Added enum for all commands supported.
2. Added error codes
3. Command Response defines
4. SPI Data Read/Write defines
2017-06-21 09:59:01 -05:00
Deepika fa885f4b68 Cleanup of SPI related code
3. Removed redundant function _cmdx
2017-06-20 17:03:59 -05:00
Deepika a26b3bca61 Cleanup of SPI related code
1. Added function to select/deselect the device
2. Init function for SPI
2017-06-20 16:41:23 -05:00
Deepika f462bb6b5a capacity of card to be calcualted from csd [69,48] 2017-06-20 13:36:06 -05:00
simosillankorva efc6bbc46e Add pin override for NUCLEO_F429ZI (#20)
This is needed as the regular configuration does not work with this board due pin conflict with Ethernet and SD-card.
2017-05-18 10:32:08 +03:00
Janne Kiiskilä be68bf8f58 Merge pull request #15 from ARMmbed/ublox_odin_int_sd
Add UBLOX_EVK_ODIN_W2 override for int. SD-card
2017-05-04 15:41:17 +03:00
Janne Kiiskilä 59fafba0db Add UBLOX_EVK_ODIN_W2 override for int. SD-card
Enable the internal SD-card reader in UBLOX_EVK_ODIN_W2. This will
disable the CI-shield SD-card reader if you have, if you prefer using it
you have to remove this target override section.

Please note that there seem to be some reliability problems with the
internal SD-card slot, in my case the mbed OS CI-shield works better.
2017-04-20 13:17:31 +03:00
Janne Kiiskilä 2dc0da56c3 Merge pull request #13 from ARMmbed/mbed_lib
Start using mbed_lib.json
2017-04-13 16:01:24 +03:00
Janne Kiiskilä f90353cfe7 Start using mbed_lib.json
Modify example also similarly to match the PIN definitions. This encapsulates
all the SD-card related stuff to this library. By including this library you
also get the pin definitions on the same go.
2017-04-13 15:14:40 +03:00
Sam Grove 37b5043d06 Merge pull request #5 from simonqhughes/master
Fix for armmbed/sd-driver issue 4: SDCard Initialisation fails for ES…
2017-04-06 11:23:49 -05:00
Simon Hughes 5830844aa3 Incorporated review feedback for simplfied _go_idle_state() implementation with 1ms wait between response queries. 2017-04-06 12:47:47 +01:00
Simon Hughes 88fecd54d6 Fix for armmbed/sd-driver issue 4: SDCard Initialisation fails for ESFS test cases on first time initialisation. 2017-04-05 13:32:44 +01:00
Simon D Hughes 3b0529a81e Merge pull request #1 from ARMmbed/g-fix-size-const
Fix const attribute mismatch on size function
2017-04-05 11:28:45 +01:00
Simon D Hughes 96142e4303 Removing old spif test case. 2017-03-28 18:47:43 +01:00
Simon D Hughes e2fc4fcc44 Removing SPIBlockDevice module as present in spiflash-driver repository. 2017-03-28 17:14:58 +01:00
Simon Hughes c7dba87363 Updated readme with appendices corrections. 2017-03-22 14:12:48 +00:00
Simon Hughes 29074fe80e Updated readme with appendices corrections. 2017-03-22 14:07:57 +00:00
Simon Hughes 61d3a88659 Updated readme with appendices describing i2ceeprom and spiflash-driver block device examples. 2017-03-22 14:03:44 +00:00
Christopher Haster aabeb8c7d1 Fixed const attribute mismatch on size function 2017-03-20 17:08:20 -05:00
Simon Hughes 7ee1fbc128 Updated version of README.md describing how to overcome build problems due to incompatible versions of mbed-os and sd-driver. 2017-03-15 17:03:38 +00:00
Simon Hughes a8c85d30af Fixing SDBlockDevice::size() and SPIFBlockDevice::size() to implement BlockDevice::size() const change. 2017-03-14 17:45:48 +00:00
Simon Hughes b2fb488376 Updated README.md to include worked exmaples and restructuring of information. 2017-03-09 18:04:25 +00:00
Simon Hughes 58c52d3c82 Fixing url references 2017-03-07 17:29:00 +00:00
Simon Hughes a3484e095a Fixed fopen and basic test cases to use renamed mbed_retarget.h, and updated filesytem readme. 2017-03-07 17:19:10 +00:00
Simon Hughes 50dd8c3983 STORAGE: updated sd-driver README.md and POSIX file API README.md. 2017-02-28 18:18:12 +00:00
Simon Hughes b9d9685b43 STORAGE: fixes of basic.cpp test case to adopt new version of filesystem direct API. 2017-02-27 17:53:31 +00:00
Simon Hughes 7e223bdaeb Ported mbed 2 FAT32 filesysetm test cases to mbed 5 tests in basic.cpp. 2017-02-24 18:12:16 +00:00
Simon Hughes b939ebca60 Added mbed_app.json support for definitions of SPI pin names for SDCard support, the default configuration being for the CI test shield plugged into the Arduino header. 2017-02-17 17:53:12 +00:00
Simon Hughes 9e5cca3be0 Adding SD driver (SDBlockDevice module) and associated test cases (basic, fopen) moved from mbed-os. 2017-02-14 16:54:49 +00:00
Simon D Hughes 434caf5e9c Initial commit 2017-02-14 16:15:27 +00:00