Implemented write

This commit is contained in:
Bernd Herzog
2023-04-01 17:39:08 +02:00
parent 50859171f4
commit bb90fdc5fc
4 changed files with 27 additions and 36 deletions
+4
View File
@@ -10,3 +10,7 @@ uint32_t get_capacity(void) {
bool_t read_block(uint32_t startblk, uint8_t *buf, uint32_t n) {
return sdcRead(&SDCD1, startblk, buf, n);
}
bool_t write_block(uint32_t startblk, uint8_t *buf, uint32_t n) {
return sdcWrite(&SDCD1, startblk, buf, n);
}