From 4b07178f3deeced68406c166e0a8236a992f1ad6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mario=20H=C3=BCttel?= Date: Sun, 19 Jan 2020 20:47:52 +0100 Subject: [PATCH] Tested SDIO functionality. Still works. Rework has to be done urgently code is very bad --- .gitignore | 1 + fatfs/shimatta_sdio_driver/shimatta_sdio.c | 4 +++- fatfs/shimatta_sdio_driver/shimatta_sdio_config.h | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 5c15a32..d88e41f 100644 --- a/.gitignore +++ b/.gitignore @@ -14,3 +14,4 @@ Debug *.files *.includes +*.jdebug diff --git a/fatfs/shimatta_sdio_driver/shimatta_sdio.c b/fatfs/shimatta_sdio_driver/shimatta_sdio.c index 153a190..c327586 100644 --- a/fatfs/shimatta_sdio_driver/shimatta_sdio.c +++ b/fatfs/shimatta_sdio_driver/shimatta_sdio.c @@ -118,6 +118,7 @@ sdio_write_buffer(uint32_t dlen, uint32_t blklen, uint8_t *buff) } +/* uint8_t data1[512] = {(1<<1), 16, 0xC9, 0x9A, 0x20, 0x84, 0x3E, 0xD7, 0xD9, 0x0B, 0x68, 0x01, 0xE4, 0x9F, 0x2B, 0xC8, 0x02, 0x77}; sdio_unlock_card() @@ -133,6 +134,7 @@ sdio_unlock_card() sdio_write_buffer(512, 9, data1); } +*/ DSTATUS SDIO_initialize(){ int timeout = 0x3000; @@ -203,7 +205,7 @@ DSTATUS SDIO_initialize(){ if (SDIO_send_block_length_CMD16((uint32_t)(1<