Added rp2_flash ioctl to get the flash fs base address

pull/12357/head
Antti Louko 2023-09-02 22:39:34 +03:00
rodzic c0d4c604e6
commit 7d596b9318
1 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -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;
}