![]() |
sdps
Vitis Drivers API Documentation
|
Tests read and write transfers on the SD/eMMC interface.
Running this example modifies the card contents and erases the file system information in the card. The card needs to be re-formatted.
Modify the offset and Size macros to test different SD memory offset and size.
MODIFICATION HISTORY:
Ver Who Date Changes
3.9 mn 12/02/19 First release 3.10 mn 09/17/20 Fix sector offset issue with Non-HCS SD cards 4.2 ro 06/12/23 Added support for system device-tree flow. 4.7 vn 07/30/26 Fix Doxygen warnings 4.7 tb 10/01/26 Align Doxygen comments with AMD documentation standards
#include "xsdps.h"Macros | |
| #define | TEST 7 |
| Base value of the test data pattern. More... | |
| #define | NUM_BLOCKS 16 |
| Number of SD blocks to test. More... | |
| #define | SECTOR_OFFSET 204800 |
| Sector offset to test. More... | |
Functions | |
| int | main (void) |
| Calls the SD example. More... | |
Variables | |
| u8 | DestinationAddress [10 *1024] |
| Buffer for the read data. More... | |
| u8 | SourceAddress [10 *1024] |
| Buffer for the write data. More... | |
| #define NUM_BLOCKS 16 |
Number of SD blocks to test.
| #define SECTOR_OFFSET 204800 |
Sector offset to test.
| #define TEST 7 |
Base value of the test data pattern.
| int main | ( | void | ) |
Calls the SD example.
| u8 DestinationAddress[10 *1024] |
Buffer for the read data.
| u8 SourceAddress[10 *1024] |
Buffer for the write data.