From 7d596b9318d533776bd6e48f3b5bf3897678e25e Mon Sep 17 00:00:00 2001 From: Antti Louko Date: Sat, 2 Sep 2023 22:39:34 +0300 Subject: [PATCH] Added rp2_flash ioctl to get the flash fs base address --- ports/rp2/rp2_flash.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ports/rp2/rp2_flash.c b/ports/rp2/rp2_flash.c index 26ec41949e..32d5c0aa3a 100644 --- a/ports/rp2/rp2_flash.c +++ b/ports/rp2/rp2_flash.c @@ -177,6 +177,8 @@ STATIC mp_obj_t rp2_flash_ioctl(mp_obj_t self_in, mp_obj_t cmd_in, mp_obj_t arg_ // TODO check return value return MP_OBJ_NEW_SMALL_INT(0); } + case 0x1000: + return MP_OBJ_NEW_SMALL_INT(self->flash_base); default: return mp_const_none; }