Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue 4237 - Changed initial setting in program_struct #4405

Merged
merged 4 commits into from
Mar 16, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fixed initial settings for program_struct to allow more than 1 progra…
…m per pio
  • Loading branch information
siehputz committed Mar 14, 2021
commit 9a835019823715930c1e2087dd9394ed38fecd0a
2 changes: 1 addition & 1 deletion ports/raspberrypi/common-hal/rp2pio/StateMachine.c
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ bool rp2pio_statemachine_construct(rp2pio_statemachine_obj_t *self,
pio_program_t program_struct = {
.instructions = (uint16_t*) program,
.length = program_len,
.origin = 0
.origin = -1
};
for (size_t i = 0; i < NUM_PIOS; i++) {
PIO pio = pio_instances[i];
Expand Down