rp2-sd-driver #9
Reference in New Issue
Block a user
Delete Branch "rp2-sd-driver"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The builtin micropython SD card driver using the default micropython SPI
implementation suffered from very low read speeds. Add an optimized SD
card driver using rp2 PIO and DMA. Currently read only, write support to
be added later.
@@ -0,0 +67,4 @@mp_buffer_info_t bufinfo;if (!mp_get_buffer(buf_obj, &bufinfo, MP_BUFFER_WRITE))mp_raise_ValueError("Not a write buffer");if (bufinfo.len % 512 != 0)Maybe introduce a constant SD_SECTIR_SIZE?
@@ -0,0 +61,4 @@static bool sd_send_op_cond(void){uint8_t buf[1];Just 'uint8_t buf;' for consistency?
0d37001323to98ecca0d09