Skip to content

Commit 061d3af

Browse files
authored
Merge pull request adafruit#10262 from burtyb/movStatusType1
rp2pio mov_status_type and mov_status_n
2 parents ceda2f0 + 59749b9 commit 061d3af

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

ports/raspberrypi/bindings/rp2pio/StateMachine.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
//| """A type representing one of the strings ``"auto"``, ``"txrx"``, ``"tx"``, or ``"rx"``. These values are supported on both RP2350 and RP2040. For type-checking only, not actually defined in CircuitPython."""
3030
//| MovStatusType = Literal["txfifo", "rxfifo", "irq"]
3131
//| """A type representing one of the strings ``"txfifo"``, ``"rxfifo"``, or ``"irq"``. These values are supported on RP2350. For type-checking only, not actually defined in CircuitPython."""
32-
//| MovStatusType_piov0 = Literal["txfifo"]
33-
//| """A type representing the string ``"txfifo"``. This value is supported on RP2350 and RP2040. For type-checking only, not actually defined in CircuitPython."""
32+
//| MovStatusType_piov0 = Literal["txfifo", "rxfifo"]
33+
//| """A type representing one of the strings ``"txfifo"``, ``"rxfifo"``. These values are supported on RP2350 and RP2040. For type-checking only, not actually defined in CircuitPython."""
3434
//|
3535
//|
3636
//| class StateMachine:

ports/raspberrypi/common-hal/rp2pio/StateMachine.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,8 +465,9 @@ bool rp2pio_statemachine_construct(rp2pio_statemachine_obj_t *self,
465465

466466
sm_config_set_fifo_join(&c, join);
467467

468+
sm_config_set_mov_status(&c, mov_status_type, mov_status_n);
469+
468470
// TODO: these arguments
469-
// int mov_status_type, int mov_status_n,
470471
// int set_count, int out_count
471472

472473
self->sm_config = c;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy