implemented msd read

This commit is contained in:
Bernd Herzog
2023-04-01 17:21:57 +02:00
parent fc1b676ce6
commit 50859171f4
10 changed files with 1353 additions and 352 deletions
+12
View File
@@ -0,0 +1,12 @@
#include "diskio.h"
#include "ch.h"
#include "hal.h"
uint32_t get_capacity(void) {
return mmcsdGetCardCapacity(&SDCD1);
}
bool_t read_block(uint32_t startblk, uint8_t *buf, uint32_t n) {
return sdcRead(&SDCD1, startblk, buf, n);
}