Sergey
5 years ago
6 changed files with 41 additions and 3 deletions
@ -0,0 +1,23 @@ |
|||
#include "mks_test_sdio.h" |
|||
#include "../../MarlinCore.h" |
|||
#include "../../inc/MarlinConfig.h" |
|||
#include "../../libs/Segger/log.h" |
|||
#include "../../sd/cardreader.h" |
|||
|
|||
|
|||
void mks_test_sdio(void){ |
|||
uint8_t data[512]; |
|||
CardReader::mount(); |
|||
|
|||
DEBUG("Start sdio test"); |
|||
|
|||
for(uint32_t i=0; i<100000; i++){ |
|||
if((i%1000) == 0){ |
|||
DEBUG("Progress %d blocks",i); |
|||
} |
|||
SDIO_ReadBlock(i,data); |
|||
} |
|||
|
|||
DEBUG("Finish sdio test"); |
|||
|
|||
} |
@ -0,0 +1,6 @@ |
|||
#ifndef MKS_WIFI_SDIOTEST_H |
|||
#define MKS_WIFI_SDIOTEST_H |
|||
|
|||
void mks_test_sdio(void); |
|||
|
|||
#endif |
Loading…
Reference in new issue