rp2/rp2_pio: Add support for RP2350A/B variants in PIO interface.
Add support for 32 and 48 pin variants of RP2350. Add new `PIO.gpio_base()` method, mirroring the Pico SDK. Signed-off-by: Phil Howard <phil@gadgetoid.com> Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
committed by
Damien George
parent
a3d1c59ca3
commit
e6093c0fbd
@@ -27,6 +27,17 @@ Constructors
|
||||
Methods
|
||||
-------
|
||||
|
||||
.. method:: PIO.gpio_base([base])
|
||||
|
||||
Query and optionally set the current GPIO base for this PIO instance.
|
||||
|
||||
If an argument is given then it must be a pin (or integer corresponding to a pin
|
||||
number), restricted to either GPIO0 or GPIO16. The GPIO base will then be set to
|
||||
that pin. Setting the GPIO base must be done before any programs are added or state
|
||||
machines created.
|
||||
|
||||
Returns the current GPIO base pin.
|
||||
|
||||
.. method:: PIO.add_program(program)
|
||||
|
||||
Add the *program* to the instruction memory of this PIO instance.
|
||||
|
||||
Reference in New Issue
Block a user