@@ -195,9 +195,7 @@ static pio_pinmask_t _check_pins_free(const mcu_pin_obj_t *first_pin, uint8_t pi
195
195
if (exclusive_pin_use || _pin_reference_count [pin_number ] == 0 ) {
196
196
assert_pin_free (pin );
197
197
}
198
- mp_printf (& mp_plat_print , "pins_we_use + pin %d\n" , pin_number );
199
198
PIO_PINMASK_SET (pins_we_use , pin_number );
200
- PIO_PINMASK_PRINT (pins_we_use );
201
199
}
202
200
}
203
201
return pins_we_use ;
@@ -265,8 +263,6 @@ static bool use_existing_program(PIO *pio_out, uint *sm_out, int *offset_inout,
265
263
* pio_out = pio ;
266
264
* sm_out = j ;
267
265
* offset_inout = _current_program_offset [i ][j ];
268
- mp_printf (& mp_plat_print , "use existing program pio=%i offset=%u\n" ,
269
- i , _current_program_offset [i ][j ]);
270
266
return true;
271
267
}
272
268
}
@@ -300,14 +296,11 @@ bool rp2pio_statemachine_construct(rp2pio_statemachine_obj_t *self,
300
296
// Create a program id that isn't the pointer so we can store it without storing the original object.
301
297
uint32_t program_id = ~((uint32_t )program );
302
298
303
- mp_printf (& mp_plat_print , "construct\n" );
304
-
305
299
uint gpio_base = 0 , gpio_count = 0 ;
306
300
#if NUM_BANK0_GPIOS > 32
307
- PIO_PINMASK_PRINT (pins_we_use );
308
301
if (PIO_PINMASK_VALUE (pins_we_use ) >> 32 ) {
309
302
if (PIO_PINMASK_VALUE (pins_we_use ) & 0xffff ) {
310
- mp_printf ( & mp_plat_print , " Uses pins from 0-15 and 32-47. not possible\n" );
303
+ // Uses pins from 0-15 and 32-47. not possible
311
304
return false;
312
305
}
313
306
}
@@ -337,7 +330,6 @@ bool rp2pio_statemachine_construct(rp2pio_statemachine_obj_t *self,
337
330
338
331
if (!use_existing_program (& pio , & state_machine , & offset , program_id , program_len , gpio_base , gpio_count )) {
339
332
uint program_offset ;
340
- mp_printf (& mp_plat_print , "gpio_base = %d gpio_count = %d\n" , gpio_base , gpio_count );
341
333
bool r = pio_claim_free_sm_and_add_program_for_gpio_range (& program_struct , & pio , & state_machine , & program_offset , gpio_base , gpio_count , true);
342
334
if (!r ) {
343
335
return false;
@@ -659,9 +651,7 @@ void common_hal_rp2pio_statemachine_construct(rp2pio_statemachine_obj_t *self,
659
651
660
652
int pio_gpio_offset = 0 ;
661
653
#if NUM_BANK0_GPIOS > 32
662
- PIO_PINMASK_PRINT (pins_we_use );
663
654
if (PIO_PINMASK_VALUE (pins_we_use ) >> 32 ) {
664
- mp_printf (& mp_plat_print , "Using upper bank\n" );
665
655
pio_gpio_offset = 16 ;
666
656
if (PIO_PINMASK_VALUE (pins_we_use ) & 0xffff ) {
667
657
mp_raise_ValueError_varg (MP_ERROR_TEXT ("Cannot use GPIO0..15 together with GPIO32..47" ));
0 commit comments