kopia lustrzana https://github.com/micropython/micropython
Added rp2_flash ioctl to get the flash fs base address
rodzic
c0d4c604e6
commit
7d596b9318
|
@ -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;
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue