milestone: a selection of builds succeed
This commit is contained in:
parent
0d756066e8
commit
d37f8a1a5a
@ -133,10 +133,12 @@ STATIC const mp_obj_type_t stdio_obj_type = {
|
||||
.name = MP_QSTR_FileIO,
|
||||
// TODO .make_new?
|
||||
.print = stdio_obj_print,
|
||||
.getiter = mp_identity_getiter,
|
||||
.iternext = mp_stream_unbuffered_iter,
|
||||
.protocol = &stdio_obj_stream_p,
|
||||
.locals_dict = (mp_obj_dict_t *)&stdio_locals_dict,
|
||||
EXTENDED_FIELDS(
|
||||
.getiter = mp_identity_getiter,
|
||||
.iternext = mp_stream_unbuffered_iter,
|
||||
.protocol = &stdio_obj_stream_p,
|
||||
),
|
||||
};
|
||||
|
||||
const sys_stdio_obj_t mp_sys_stdin_obj = {{&stdio_obj_type}, .fd = STDIO_FD_IN};
|
||||
@ -167,11 +169,14 @@ STATIC const mp_stream_p_t stdio_buffer_obj_stream_p = {
|
||||
STATIC const mp_obj_type_t stdio_buffer_obj_type = {
|
||||
{ &mp_type_type },
|
||||
.name = MP_QSTR_FileIO,
|
||||
.flags = MP_TYPE_FLAG_FULL,
|
||||
.print = stdio_obj_print,
|
||||
.getiter = mp_identity_getiter,
|
||||
.iternext = mp_stream_unbuffered_iter,
|
||||
.protocol = &stdio_buffer_obj_stream_p,
|
||||
.locals_dict = (mp_obj_dict_t *)&stdio_locals_dict,
|
||||
EXTENDED_FIELDS(
|
||||
.getiter = mp_identity_getiter,
|
||||
.iternext = mp_stream_unbuffered_iter,
|
||||
.protocol = &stdio_buffer_obj_stream_p,
|
||||
),
|
||||
};
|
||||
|
||||
STATIC const sys_stdio_obj_t stdio_buffer_obj = {{&stdio_buffer_obj_type}, .fd = 0}; // fd unused
|
||||
|
@ -215,10 +215,13 @@ STATIC MP_DEFINE_CONST_DICT(bleio_address_locals_dict, bleio_address_locals_dict
|
||||
|
||||
const mp_obj_type_t bleio_address_type = {
|
||||
{ &mp_type_type },
|
||||
.flags = MP_TYPE_FLAG_FULL,
|
||||
.name = MP_QSTR_Address,
|
||||
.make_new = bleio_address_make_new,
|
||||
.print = bleio_address_print,
|
||||
.unary_op = bleio_address_unary_op,
|
||||
.binary_op = bleio_address_binary_op,
|
||||
.locals_dict = (mp_obj_dict_t *)&bleio_address_locals_dict
|
||||
.locals_dict = (mp_obj_dict_t *)&bleio_address_locals_dict,
|
||||
EXTENDED_FIELDS(
|
||||
.unary_op = bleio_address_unary_op,
|
||||
.binary_op = bleio_address_binary_op,
|
||||
),
|
||||
};
|
||||
|
@ -238,10 +238,13 @@ STATIC const mp_stream_p_t characteristic_buffer_stream_p = {
|
||||
|
||||
const mp_obj_type_t bleio_characteristic_buffer_type = {
|
||||
{ &mp_type_type },
|
||||
.flags = MP_TYPE_FLAG_FULL,
|
||||
.name = MP_QSTR_CharacteristicBuffer,
|
||||
.make_new = bleio_characteristic_buffer_make_new,
|
||||
.getiter = mp_identity_getiter,
|
||||
.iternext = mp_stream_unbuffered_iter,
|
||||
.protocol = &characteristic_buffer_stream_p,
|
||||
.locals_dict = (mp_obj_dict_t *)&bleio_characteristic_buffer_locals_dict
|
||||
.locals_dict = (mp_obj_dict_t *)&bleio_characteristic_buffer_locals_dict,
|
||||
EXTENDED_FIELDS(
|
||||
.getiter = mp_identity_getiter,
|
||||
.iternext = mp_stream_unbuffered_iter,
|
||||
.protocol = &characteristic_buffer_stream_p,
|
||||
),
|
||||
};
|
||||
|
@ -266,7 +266,10 @@ STATIC MP_DEFINE_CONST_DICT(bleio_connection_locals_dict, bleio_connection_local
|
||||
|
||||
const mp_obj_type_t bleio_connection_type = {
|
||||
{ &mp_type_type },
|
||||
.flags = MP_TYPE_FLAG_FULL,
|
||||
.name = MP_QSTR_Connection,
|
||||
.locals_dict = (mp_obj_dict_t *)&bleio_connection_locals_dict,
|
||||
.unary_op = mp_generic_unary_op,
|
||||
EXTENDED_FIELDS(
|
||||
.unary_op = mp_generic_unary_op,
|
||||
),
|
||||
};
|
||||
|
@ -62,7 +62,10 @@ STATIC mp_obj_t scanresults_iternext(mp_obj_t self_in) {
|
||||
|
||||
const mp_obj_type_t bleio_scanresults_type = {
|
||||
{ &mp_type_type },
|
||||
.flags = MP_TYPE_FLAG_FULL,
|
||||
.name = MP_QSTR_ScanResults,
|
||||
.getiter = mp_identity_getiter,
|
||||
.iternext = scanresults_iternext,
|
||||
EXTENDED_FIELDS(
|
||||
.getiter = mp_identity_getiter,
|
||||
.iternext = scanresults_iternext,
|
||||
),
|
||||
};
|
||||
|
@ -300,10 +300,13 @@ void bleio_uuid_print(const mp_print_t *print, mp_obj_t self_in, mp_print_kind_t
|
||||
|
||||
const mp_obj_type_t bleio_uuid_type = {
|
||||
{ &mp_type_type },
|
||||
.flags = MP_TYPE_FLAG_FULL,
|
||||
.name = MP_QSTR_UUID,
|
||||
.print = bleio_uuid_print,
|
||||
.make_new = bleio_uuid_make_new,
|
||||
.unary_op = bleio_uuid_unary_op,
|
||||
.binary_op = bleio_uuid_binary_op,
|
||||
.locals_dict = (mp_obj_dict_t *)&bleio_uuid_locals_dict,
|
||||
EXTENDED_FIELDS(
|
||||
.unary_op = bleio_uuid_unary_op,
|
||||
.binary_op = bleio_uuid_binary_op,
|
||||
),
|
||||
};
|
||||
|
@ -383,10 +383,12 @@ STATIC MP_DEFINE_CONST_DICT(pixelbuf_pixelbuf_locals_dict, pixelbuf_pixelbuf_loc
|
||||
const mp_obj_type_t pixelbuf_pixelbuf_type = {
|
||||
{ &mp_type_type },
|
||||
.name = MP_QSTR_PixelBuf,
|
||||
.subscr = pixelbuf_pixelbuf_subscr,
|
||||
.make_new = pixelbuf_pixelbuf_make_new,
|
||||
.unary_op = pixelbuf_pixelbuf_unary_op,
|
||||
.getiter = mp_obj_new_generic_iterator,
|
||||
.print = NULL,
|
||||
.flags = MP_TYPE_FLAG_FULL,
|
||||
.locals_dict = (mp_obj_t)&pixelbuf_pixelbuf_locals_dict,
|
||||
.make_new = pixelbuf_pixelbuf_make_new,
|
||||
EXTENDED_FIELDS(
|
||||
.subscr = pixelbuf_pixelbuf_subscr,
|
||||
.unary_op = pixelbuf_pixelbuf_unary_op,
|
||||
.getiter = mp_obj_new_generic_iterator,
|
||||
),
|
||||
};
|
||||
|
@ -175,8 +175,10 @@ STATIC mp_obj_t alarm_sleep_memory_subscr(mp_obj_t self_in, mp_obj_t index_in, m
|
||||
const mp_obj_type_t alarm_sleep_memory_type = {
|
||||
{ &mp_type_type },
|
||||
.name = MP_QSTR_SleepMemory,
|
||||
.subscr = alarm_sleep_memory_subscr,
|
||||
.unary_op = alarm_sleep_memory_unary_op,
|
||||
.print = NULL,
|
||||
.flags = MP_TYPE_FLAG_FULL,
|
||||
.locals_dict = (mp_obj_t)&alarm_sleep_memory_locals_dict,
|
||||
EXTENDED_FIELDS(
|
||||
.subscr = alarm_sleep_memory_subscr,
|
||||
.unary_op = alarm_sleep_memory_unary_op,
|
||||
),
|
||||
};
|
||||
|
@ -184,7 +184,10 @@ STATIC const audiosample_p_t audioio_rawsample_proto = {
|
||||
const mp_obj_type_t audioio_rawsample_type = {
|
||||
{ &mp_type_type },
|
||||
.name = MP_QSTR_RawSample,
|
||||
.flags = MP_TYPE_FLAG_FULL,
|
||||
.make_new = audioio_rawsample_make_new,
|
||||
.locals_dict = (mp_obj_dict_t *)&audioio_rawsample_locals_dict,
|
||||
.protocol = &audioio_rawsample_proto,
|
||||
EXTENDED_FIELDS(
|
||||
.protocol = &audioio_rawsample_proto,
|
||||
),
|
||||
};
|
||||
|
@ -213,7 +213,10 @@ STATIC const audiosample_p_t audioio_wavefile_proto = {
|
||||
const mp_obj_type_t audioio_wavefile_type = {
|
||||
{ &mp_type_type },
|
||||
.name = MP_QSTR_WaveFile,
|
||||
.flags = MP_TYPE_FLAG_FULL,
|
||||
.make_new = audioio_wavefile_make_new,
|
||||
.locals_dict = (mp_obj_dict_t *)&audioio_wavefile_locals_dict,
|
||||
.protocol = &audioio_wavefile_proto,
|
||||
EXTENDED_FIELDS(
|
||||
.protocol = &audioio_wavefile_proto,
|
||||
),
|
||||
};
|
||||
|
@ -297,7 +297,10 @@ STATIC const audiosample_p_t audiomixer_mixer_proto = {
|
||||
const mp_obj_type_t audiomixer_mixer_type = {
|
||||
{ &mp_type_type },
|
||||
.name = MP_QSTR_Mixer,
|
||||
.flags = MP_TYPE_FLAG_FULL,
|
||||
.make_new = audiomixer_mixer_make_new,
|
||||
.locals_dict = (mp_obj_dict_t *)&audiomixer_mixer_locals_dict,
|
||||
.protocol = &audiomixer_mixer_proto,
|
||||
EXTENDED_FIELDS(
|
||||
.protocol = &audiomixer_mixer_proto,
|
||||
),
|
||||
};
|
||||
|
@ -261,7 +261,10 @@ STATIC const audiosample_p_t audiomp3_mp3file_proto = {
|
||||
const mp_obj_type_t audiomp3_mp3file_type = {
|
||||
{ &mp_type_type },
|
||||
.name = MP_QSTR_MP3Decoder,
|
||||
.flags = MP_TYPE_FLAG_FULL,
|
||||
.make_new = audiomp3_mp3file_make_new,
|
||||
.locals_dict = (mp_obj_dict_t *)&audiomp3_mp3file_locals_dict,
|
||||
.protocol = &audiomp3_mp3file_proto,
|
||||
EXTENDED_FIELDS(
|
||||
.protocol = &audiomp3_mp3file_proto,
|
||||
),
|
||||
};
|
||||
|
@ -425,8 +425,10 @@ const mp_obj_type_t busio_uart_type = {
|
||||
.flags = MP_TYPE_FLAG_FULL,
|
||||
.name = MP_QSTR_UART,
|
||||
.make_new = busio_uart_make_new,
|
||||
.getiter = mp_identity_getiter,
|
||||
.iternext = mp_stream_unbuffered_iter,
|
||||
.protocol = &uart_stream_p,
|
||||
.locals_dict = (mp_obj_dict_t *)&busio_uart_locals_dict,
|
||||
EXTENDED_FIELDS(
|
||||
.getiter = mp_identity_getiter,
|
||||
.iternext = mp_stream_unbuffered_iter,
|
||||
.protocol = &uart_stream_p,
|
||||
),
|
||||
};
|
||||
|
@ -172,7 +172,10 @@ STATIC MP_DEFINE_CONST_DICT(canio_listener_locals_dict, canio_listener_locals_di
|
||||
const mp_obj_type_t canio_listener_type = {
|
||||
{ &mp_type_type },
|
||||
.name = MP_QSTR_Listener,
|
||||
.getiter = mp_identity_getiter,
|
||||
.iternext = canio_iternext,
|
||||
.flags = MP_TYPE_FLAG_FULL,
|
||||
.locals_dict = (mp_obj_dict_t *)&canio_listener_locals_dict,
|
||||
EXTENDED_FIELDS(
|
||||
.getiter = mp_identity_getiter,
|
||||
.iternext = canio_iternext,
|
||||
),
|
||||
};
|
||||
|
@ -368,9 +368,12 @@ STATIC mp_int_t bitmap_get_buffer(mp_obj_t self_in, mp_buffer_info_t *bufinfo, m
|
||||
|
||||
const mp_obj_type_t displayio_bitmap_type = {
|
||||
{ &mp_type_type },
|
||||
.flags = MP_TYPE_FLAG_FULL,
|
||||
.name = MP_QSTR_Bitmap,
|
||||
.make_new = displayio_bitmap_make_new,
|
||||
.subscr = bitmap_subscr,
|
||||
.locals_dict = (mp_obj_dict_t *)&displayio_bitmap_locals_dict,
|
||||
.buffer_p = { .get_buffer = bitmap_get_buffer },
|
||||
EXTENDED_FIELDS(
|
||||
.subscr = bitmap_subscr,
|
||||
.buffer_p = { .get_buffer = bitmap_get_buffer },
|
||||
),
|
||||
};
|
||||
|
@ -357,10 +357,13 @@ STATIC MP_DEFINE_CONST_DICT(displayio_group_locals_dict, displayio_group_locals_
|
||||
|
||||
const mp_obj_type_t displayio_group_type = {
|
||||
{ &mp_type_type },
|
||||
.flags = MP_TYPE_FLAG_FULL,
|
||||
.name = MP_QSTR_Group,
|
||||
.make_new = displayio_group_make_new,
|
||||
.subscr = group_subscr,
|
||||
.unary_op = group_unary_op,
|
||||
.getiter = mp_obj_new_generic_iterator,
|
||||
.locals_dict = (mp_obj_dict_t *)&displayio_group_locals_dict,
|
||||
EXTENDED_FIELDS(
|
||||
.subscr = group_subscr,
|
||||
.unary_op = group_unary_op,
|
||||
.getiter = mp_obj_new_generic_iterator,
|
||||
),
|
||||
};
|
||||
|
@ -204,10 +204,13 @@ STATIC MP_DEFINE_CONST_DICT(displayio_palette_locals_dict, displayio_palette_loc
|
||||
|
||||
const mp_obj_type_t displayio_palette_type = {
|
||||
{ &mp_type_type },
|
||||
.flags = MP_TYPE_FLAG_FULL,
|
||||
.name = MP_QSTR_Palette,
|
||||
.make_new = displayio_palette_make_new,
|
||||
.subscr = palette_subscr,
|
||||
.unary_op = group_unary_op,
|
||||
.getiter = mp_obj_new_generic_iterator,
|
||||
.locals_dict = (mp_obj_dict_t *)&displayio_palette_locals_dict,
|
||||
EXTENDED_FIELDS(
|
||||
.subscr = palette_subscr,
|
||||
.unary_op = group_unary_op,
|
||||
.getiter = mp_obj_new_generic_iterator,
|
||||
),
|
||||
};
|
||||
|
@ -394,8 +394,11 @@ STATIC MP_DEFINE_CONST_DICT(displayio_tilegrid_locals_dict, displayio_tilegrid_l
|
||||
|
||||
const mp_obj_type_t displayio_tilegrid_type = {
|
||||
{ &mp_type_type },
|
||||
.flags = MP_TYPE_FLAG_FULL,
|
||||
.name = MP_QSTR_TileGrid,
|
||||
.make_new = displayio_tilegrid_make_new,
|
||||
.subscr = tilegrid_subscr,
|
||||
.locals_dict = (mp_obj_dict_t *)&displayio_tilegrid_locals_dict,
|
||||
EXTENDED_FIELDS(
|
||||
.subscr = tilegrid_subscr,
|
||||
),
|
||||
};
|
||||
|
@ -58,14 +58,17 @@ const mp_obj_namedtuple_type_t fontio_glyph_type = {
|
||||
.type = &mp_type_type
|
||||
},
|
||||
.name = MP_QSTR_Glyph,
|
||||
.flags = MP_TYPE_FLAG_FULL,
|
||||
.print = namedtuple_print,
|
||||
.make_new = namedtuple_make_new,
|
||||
.unary_op = mp_obj_tuple_unary_op,
|
||||
.binary_op = mp_obj_tuple_binary_op,
|
||||
.attr = namedtuple_attr,
|
||||
.subscr = mp_obj_tuple_subscr,
|
||||
.getiter = mp_obj_tuple_getiter,
|
||||
.parent = &mp_type_tuple,
|
||||
.attr = namedtuple_attr,
|
||||
EXTENDED_FIELDS(
|
||||
.unary_op = mp_obj_tuple_unary_op,
|
||||
.binary_op = mp_obj_tuple_binary_op,
|
||||
.subscr = mp_obj_tuple_subscr,
|
||||
.getiter = mp_obj_tuple_getiter,
|
||||
),
|
||||
},
|
||||
.n_fields = 8,
|
||||
.fields = {
|
||||
|
@ -171,10 +171,13 @@ STATIC MP_DEFINE_CONST_DICT(keypad_event_locals_dict, keypad_event_locals_dict_t
|
||||
|
||||
const mp_obj_type_t keypad_event_type = {
|
||||
{ &mp_type_type },
|
||||
.flags = MP_TYPE_FLAG_FULL,
|
||||
.name = MP_QSTR_Event,
|
||||
.make_new = keypad_event_make_new,
|
||||
.print = keypad_event_print,
|
||||
.unary_op = keypad_event_unary_op,
|
||||
.binary_op = keypad_event_binary_op,
|
||||
.locals_dict = (mp_obj_dict_t *)&keypad_event_locals_dict,
|
||||
EXTENDED_FIELDS(
|
||||
.unary_op = keypad_event_unary_op,
|
||||
.binary_op = keypad_event_binary_op,
|
||||
),
|
||||
};
|
||||
|
@ -146,7 +146,10 @@ STATIC MP_DEFINE_CONST_DICT(keypad_eventqueue_locals_dict, keypad_eventqueue_loc
|
||||
|
||||
const mp_obj_type_t keypad_eventqueue_type = {
|
||||
{ &mp_type_type },
|
||||
.flags = MP_TYPE_FLAG_FULL,
|
||||
.name = MP_QSTR_Keys,
|
||||
.unary_op = keypad_eventqueue_unary_op,
|
||||
EXTENDED_FIELDS(
|
||||
.unary_op = keypad_eventqueue_unary_op,
|
||||
),
|
||||
.locals_dict = (mp_obj_t)&keypad_eventqueue_locals_dict,
|
||||
};
|
||||
|
@ -170,8 +170,9 @@ const mp_obj_type_t nvm_bytearray_type = {
|
||||
{ &mp_type_type },
|
||||
.flags = MP_TYPE_FLAG_FULL,
|
||||
.name = MP_QSTR_ByteArray,
|
||||
.subscr = nvm_bytearray_subscr,
|
||||
.unary_op = nvm_bytearray_unary_op,
|
||||
.print = NULL,
|
||||
.locals_dict = (mp_obj_t)&nvm_bytearray_locals_dict,
|
||||
EXTENDED_FIELDS(
|
||||
.subscr = nvm_bytearray_subscr,
|
||||
.unary_op = nvm_bytearray_unary_op,
|
||||
),
|
||||
};
|
||||
|
@ -238,7 +238,10 @@ STATIC MP_DEFINE_CONST_DICT(ps2io_ps2_locals_dict, ps2io_ps2_locals_dict_table);
|
||||
const mp_obj_type_t ps2io_ps2_type = {
|
||||
{ &mp_type_type },
|
||||
.name = MP_QSTR_Ps2,
|
||||
.flags = MP_TYPE_FLAG_FULL,
|
||||
.make_new = ps2io_ps2_make_new,
|
||||
.unary_op = ps2_unary_op,
|
||||
EXTENDED_FIELDS(
|
||||
.unary_op = ps2_unary_op,
|
||||
),
|
||||
.locals_dict = (mp_obj_dict_t *)&ps2io_ps2_locals_dict,
|
||||
};
|
||||
|
@ -309,9 +309,12 @@ STATIC MP_DEFINE_CONST_DICT(pulseio_pulsein_locals_dict, pulseio_pulsein_locals_
|
||||
|
||||
const mp_obj_type_t pulseio_pulsein_type = {
|
||||
{ &mp_type_type },
|
||||
.flags = MP_TYPE_FLAG_FULL,
|
||||
.name = MP_QSTR_PulseIn,
|
||||
.make_new = pulseio_pulsein_make_new,
|
||||
.subscr = pulsein_subscr,
|
||||
.unary_op = pulsein_unary_op,
|
||||
.locals_dict = (mp_obj_dict_t *)&pulseio_pulsein_locals_dict,
|
||||
EXTENDED_FIELDS(
|
||||
.subscr = pulsein_subscr,
|
||||
.unary_op = pulsein_unary_op,
|
||||
),
|
||||
};
|
||||
|
@ -439,9 +439,12 @@ STATIC mp_int_t rgbmatrix_rgbmatrix_get_buffer(mp_obj_t self_in, mp_buffer_info_
|
||||
|
||||
const mp_obj_type_t rgbmatrix_RGBMatrix_type = {
|
||||
{ &mp_type_type },
|
||||
.flags = MP_TYPE_FLAG_FULL,
|
||||
.name = MP_QSTR_RGBMatrix,
|
||||
.buffer_p = { .get_buffer = rgbmatrix_rgbmatrix_get_buffer, },
|
||||
.make_new = rgbmatrix_rgbmatrix_make_new,
|
||||
.protocol = &rgbmatrix_rgbmatrix_proto,
|
||||
.locals_dict = (mp_obj_dict_t *)&rgbmatrix_rgbmatrix_locals_dict,
|
||||
.make_new = rgbmatrix_rgbmatrix_make_new,
|
||||
EXTENDED_FIELDS(
|
||||
.buffer_p = { .get_buffer = rgbmatrix_rgbmatrix_get_buffer, },
|
||||
.protocol = &rgbmatrix_rgbmatrix_proto,
|
||||
),
|
||||
};
|
||||
|
@ -85,8 +85,11 @@ STATIC MP_DEFINE_CONST_DICT(sharpdisplay_framebuffer_locals_dict, sharpdisplay_f
|
||||
const mp_obj_type_t sharpdisplay_framebuffer_type = {
|
||||
{ &mp_type_type },
|
||||
.name = MP_QSTR_SharpMemoryFramebuffer,
|
||||
.buffer_p = { .get_buffer = sharpdisplay_framebuffer_get_buffer, },
|
||||
.flags = MP_TYPE_FLAG_FULL,
|
||||
.make_new = sharpdisplay_framebuffer_make_new,
|
||||
.protocol = &sharpdisplay_framebuffer_proto,
|
||||
.locals_dict = (mp_obj_dict_t *)&sharpdisplay_framebuffer_locals_dict,
|
||||
EXTENDED_FIELDS(
|
||||
.buffer_p = { .get_buffer = sharpdisplay_framebuffer_get_buffer, },
|
||||
.protocol = &sharpdisplay_framebuffer_proto,
|
||||
),
|
||||
};
|
||||
|
@ -163,7 +163,10 @@ STATIC const audiosample_p_t synthio_miditrack_proto = {
|
||||
const mp_obj_type_t synthio_miditrack_type = {
|
||||
{ &mp_type_type },
|
||||
.name = MP_QSTR_MidiTrack,
|
||||
.flags = MP_TYPE_FLAG_FULL,
|
||||
.make_new = synthio_miditrack_make_new,
|
||||
.locals_dict = (mp_obj_dict_t *)&synthio_miditrack_locals_dict,
|
||||
.protocol = &synthio_miditrack_proto,
|
||||
EXTENDED_FIELDS(
|
||||
.protocol = &synthio_miditrack_proto,
|
||||
),
|
||||
};
|
||||
|
@ -118,10 +118,13 @@ STATIC const mp_stream_p_t terminalio_terminal_stream_p = {
|
||||
|
||||
const mp_obj_type_t terminalio_terminal_type = {
|
||||
{ &mp_type_type },
|
||||
.flags = MP_TYPE_FLAG_FULL,
|
||||
.name = MP_QSTR_Terminal,
|
||||
.make_new = terminalio_terminal_make_new,
|
||||
.getiter = mp_identity_getiter,
|
||||
.iternext = mp_stream_unbuffered_iter,
|
||||
.protocol = &terminalio_terminal_stream_p,
|
||||
.locals_dict = (mp_obj_dict_t *)&terminalio_terminal_locals_dict,
|
||||
EXTENDED_FIELDS(
|
||||
.getiter = mp_identity_getiter,
|
||||
.iternext = mp_stream_unbuffered_iter,
|
||||
.protocol = &terminalio_terminal_stream_p,
|
||||
),
|
||||
};
|
||||
|
@ -115,13 +115,15 @@ const mp_obj_namedtuple_type_t struct_time_type_obj = {
|
||||
.flags = MP_TYPE_FLAG_FULL,
|
||||
.name = MP_QSTR_struct_time,
|
||||
.print = namedtuple_print,
|
||||
.make_new = struct_time_make_new,
|
||||
.unary_op = mp_obj_tuple_unary_op,
|
||||
.binary_op = mp_obj_tuple_binary_op,
|
||||
.attr = namedtuple_attr,
|
||||
.subscr = mp_obj_tuple_subscr,
|
||||
.getiter = mp_obj_tuple_getiter,
|
||||
.parent = &mp_type_tuple,
|
||||
.make_new = struct_time_make_new,
|
||||
.attr = namedtuple_attr,
|
||||
EXTENDED_FIELDS(
|
||||
.unary_op = mp_obj_tuple_unary_op,
|
||||
.binary_op = mp_obj_tuple_binary_op,
|
||||
.subscr = mp_obj_tuple_subscr,
|
||||
.getiter = mp_obj_tuple_getiter,
|
||||
),
|
||||
},
|
||||
.n_fields = 9,
|
||||
.fields = {
|
||||
|
@ -312,8 +312,10 @@ const mp_obj_type_t usb_cdc_serial_type = {
|
||||
{ &mp_type_type },
|
||||
.flags = MP_TYPE_FLAG_FULL,
|
||||
.name = MP_QSTR_Serial,
|
||||
.getiter = mp_identity_getiter,
|
||||
.iternext = mp_stream_unbuffered_iter,
|
||||
.protocol = &usb_cdc_serial_stream_p,
|
||||
.locals_dict = (mp_obj_dict_t *)&usb_cdc_serial_locals_dict,
|
||||
EXTENDED_FIELDS(
|
||||
.getiter = mp_identity_getiter,
|
||||
.iternext = mp_stream_unbuffered_iter,
|
||||
.protocol = &usb_cdc_serial_stream_p,
|
||||
),
|
||||
};
|
||||
|
@ -115,8 +115,10 @@ const mp_obj_type_t usb_midi_portin_type = {
|
||||
{ &mp_type_type },
|
||||
.flags = MP_TYPE_FLAG_FULL,
|
||||
.name = MP_QSTR_PortIn,
|
||||
.getiter = mp_identity_getiter,
|
||||
.iternext = mp_stream_unbuffered_iter,
|
||||
.protocol = &usb_midi_portin_stream_p,
|
||||
.locals_dict = (mp_obj_dict_t *)&usb_midi_portin_locals_dict,
|
||||
EXTENDED_FIELDS(
|
||||
.getiter = mp_identity_getiter,
|
||||
.iternext = mp_stream_unbuffered_iter,
|
||||
.protocol = &usb_midi_portin_stream_p,
|
||||
),
|
||||
};
|
||||
|
@ -96,8 +96,10 @@ const mp_obj_type_t usb_midi_portout_type = {
|
||||
{ &mp_type_type },
|
||||
.flags = MP_TYPE_FLAG_FULL,
|
||||
.name = MP_QSTR_PortOut,
|
||||
.getiter = mp_identity_getiter,
|
||||
.iternext = mp_stream_unbuffered_iter,
|
||||
.protocol = &usb_midi_portout_stream_p,
|
||||
.locals_dict = (mp_obj_dict_t *)&usb_midi_portout_locals_dict,
|
||||
EXTENDED_FIELDS(
|
||||
.getiter = mp_identity_getiter,
|
||||
.iternext = mp_stream_unbuffered_iter,
|
||||
.protocol = &usb_midi_portout_stream_p,
|
||||
),
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user