Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 3843

General • Re: RP2040 and RP2350 PIO differences.

$
0
0
However, in hardware/pio.h sm_config_set_in_pin_count() does:

Code:

    c->shiftctrl = (c->shiftctrl & ~PIO_SM0_SHIFTCTRL_IN_COUNT_BITS) |                   ((in_count - 1) << PIO_SM0_SHIFTCTRL_IN_COUNT_LSB);
with what looks like a spurious -1
Looks that way to me, and should be '((in_count & 0x1F) << PIO_SM0_SHIFTCTRL_IN_COUNT_LSB)'.

That's how I've done it in my updates to the MicroPython PIO assembler.

Statistics: Posted by hippy — Wed Aug 28, 2024 12:58 am



Viewing all articles
Browse latest Browse all 3843

Trending Articles