summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Harper <peter.harper@raspberrypi.com>2022-06-30 15:35:23 +0100
committerDamien George <damien@micropython.org>2022-07-12 16:56:38 +1000
commit9f0f7e34c7fa718c9d40897f2ba6ffabc62a1480 (patch)
tree1d659f772d88de2fc818133618ae832fd7e4d797
parentc5563aa024c60c6da1ebe79e97f2307b49999499 (diff)
rp2/mphalport: Fix missing storage_read_blocks symbol in debug build.
When building `make BOARD=PICO_W DEBUG=1` the cyw43-driver requires storage_read_blocks(). Signed-off-by: Peter Harper <peter.harper@raspberrypi.com>
-rw-r--r--ports/rp2/mphalport.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ports/rp2/mphalport.c b/ports/rp2/mphalport.c
index d3824d8f9..63ff76f5d 100644
--- a/ports/rp2/mphalport.c
+++ b/ports/rp2/mphalport.c
@@ -204,3 +204,8 @@ void mp_hal_get_mac_ascii(int idx, size_t chr_off, size_t chr_len, char *dest) {
*dest++ = hexchr[mac[chr_off >> 1] >> (4 * (1 - (chr_off & 1))) & 0xf];
}
}
+
+// Shouldn't be used, needed by cyw43-driver in debug build.
+uint32_t storage_read_blocks(uint8_t *dest, uint32_t block_num, uint32_t num_blocks) {
+ panic_unsupported();
+}