You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
467 B
23 lines
467 B
4 years ago
|
#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");
|
||
|
|
||
|
}
|