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.
26 lines
492 B
26 lines
492 B
#include "mks_test_sdio.h"
|
|
#include "../../MarlinCore.h"
|
|
#include "../../inc/MarlinConfig.h"
|
|
#include "../../libs/Segger/log.h"
|
|
#include "../../sd/cardreader.h"
|
|
#ifdef MKS_WIFI
|
|
|
|
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");
|
|
|
|
}
|
|
|
|
|
|
#endif
|
|
|