@@ -1090,43 +1090,6 @@ MP_DEFINE_CONST_FUN_OBJ_1(rp2pio_statemachine_get_last_write_obj, rp2pio_statema
10901090MP_PROPERTY_GETTER (rp2pio_statemachine_last_write_obj ,
10911091 (mp_obj_t )& rp2pio_statemachine_get_last_write_obj );
10921092
1093- static mp_obj_t rp2pio_statemachine_process (size_t n_args , const mp_obj_t * pos_args , mp_map_t * kw_args ) {
1094- enum { ARG_target , ARG_parameters , ARG_input };
1095- static const mp_arg_t allowed_args [] = {
1096- { MP_QSTR_target , MP_ARG_OBJ , {.u_obj = mp_const_none } },
1097- { MP_QSTR_parameters , MP_ARG_OBJ | MP_ARG_KW_ONLY , {.u_obj = mp_const_none } },
1098- { MP_QSTR_input , MP_ARG_OBJ | MP_ARG_KW_ONLY , {.u_obj = mp_const_none } },
1099- };
1100- rp2pio_statemachine_obj_t * self = MP_OBJ_TO_PTR (pos_args [0 ]);
1101- check_for_deinit (self );
1102- mp_arg_val_t args [MP_ARRAY_SIZE (allowed_args )];
1103- mp_arg_parse_all (n_args - 1 , pos_args + 1 , kw_args , MP_ARRAY_SIZE (allowed_args ), allowed_args , args );
1104-
1105- size_t stride_in_bytes = 0 ;
1106- sm_buf_info target_buf_info , parameters_buf_info , input_buf_info ;
1107-
1108- fill_buf_info (& target_buf_info , args [ARG_target ].u_obj , & stride_in_bytes , MP_BUFFER_WRITE );
1109- fill_buf_info (& parameters_buf_info , args [ARG_parameters ].u_obj , & stride_in_bytes , MP_BUFFER_WRITE );
1110- fill_buf_info (& input_buf_info , args [ARG_input ].u_obj , & stride_in_bytes , MP_BUFFER_WRITE );
1111-
1112- if (!stride_in_bytes ) {
1113- return mp_const_none ;
1114- }
1115-
1116- bool ok = common_hal_rp2pio_statemachine_process (self , stride_in_bytes , & target_buf_info , & parameters_buf_info , & input_buf_info );
1117-
1118- if (mp_hal_is_interrupted ()) {
1119- return mp_const_none ;
1120- }
1121- if (!ok ) {
1122- mp_raise_OSError (MP_EIO );
1123- }
1124- return mp_const_none ;
1125- }
1126- MP_DEFINE_CONST_FUN_OBJ_KW (rp2pio_statemachine_process_obj , 1 , rp2pio_statemachine_process );
1127-
1128-
1129-
11301093static const mp_rom_map_elem_t rp2pio_statemachine_locals_dict_table [] = {
11311094 { MP_ROM_QSTR (MP_QSTR_deinit ), MP_ROM_PTR (& rp2pio_statemachine_deinit_obj ) },
11321095 { MP_ROM_QSTR (MP_QSTR___enter__ ), MP_ROM_PTR (& default___enter___obj ) },
@@ -1166,8 +1129,6 @@ static const mp_rom_map_elem_t rp2pio_statemachine_locals_dict_table[] = {
11661129 { MP_ROM_QSTR (MP_QSTR_last_read ), MP_ROM_PTR (& rp2pio_statemachine_last_read_obj ) },
11671130 { MP_ROM_QSTR (MP_QSTR_last_write ), MP_ROM_PTR (& rp2pio_statemachine_last_write_obj ) },
11681131
1169- { MP_ROM_QSTR (MP_QSTR_process ), MP_ROM_PTR (& rp2pio_statemachine_process_obj ) },
1170-
11711132};
11721133static MP_DEFINE_CONST_DICT (rp2pio_statemachine_locals_dict , rp2pio_statemachine_locals_dict_table ) ;
11731134
0 commit comments