Skip to content

Commit 1658fe0

Browse files
committed
Set the statemachine to never reset so REPL works
1 parent c384ebe commit 1658fe0

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

ports/raspberrypi/bindings/rp2pio/StateMachine.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ void common_hal_rp2pio_statemachine_construct(rp2pio_statemachine_obj_t *self,
5252
void common_hal_rp2pio_statemachine_deinit(rp2pio_statemachine_obj_t *self);
5353
bool common_hal_rp2pio_statemachine_deinited(rp2pio_statemachine_obj_t *self);
5454

55+
void common_hal_rp2pio_statemachine_never_reset(rp2pio_statemachine_obj_t *self);
56+
5557
void common_hal_rp2pio_statemachine_restart(rp2pio_statemachine_obj_t *self);
5658
void common_hal_rp2pio_statemachine_stop(rp2pio_statemachine_obj_t *self);
5759
void common_hal_rp2pio_statemachine_run(rp2pio_statemachine_obj_t *self, const uint16_t *instructions, size_t len);

ports/raspberrypi/common-hal/displayio/ParallelBus.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,13 @@ void common_hal_displayio_parallelbus_construct(displayio_parallelbus_obj_t* sel
108108
false, // wait for TX stall
109109
false, 32, true // RX setting we don't use
110110
);
111+
112+
common_hal_rp2pio_statemachine_never_reset(&self->state_machine);
111113
}
112114

113115
void common_hal_displayio_parallelbus_deinit(displayio_parallelbus_obj_t* self) {
116+
common_hal_rp2pio_statemachine_deinit(&self->state_machine);
117+
114118
for (uint8_t i = 0; i < 8; i++) {
115119
reset_pin_number(self->data0_pin + i);
116120
}

0 commit comments

Comments
 (0)