Skip to content

Commit aaf698a

Browse files
committed
Remove some stale code from the pio.
1 parent 265bc30 commit aaf698a

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

prawn_do/prawn_do.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ void core1_entry() {
185185

186186
// initialize prawn_do PIO program on chosen PIO and state machine at
187187
// required offset
188-
pio_sm_config pio_config = prawn_do_program_init(pio, sm, 1.f, offset);
188+
pio_sm_config pio_config = prawn_do_program_init(pio, sm, offset);
189189

190190
// signal core1 ready for commands
191191
multicore_fifo_push_blocking(0);

prawn_do/prawn_do.pio

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@
44
.define public OUTPUT_PIN_BASE 0 ; first pin to output from
55
.define public OUTPUT_WIDTH 16 ; number of pins to output from
66

7-
; Immediately output the first entry so the outputs could be manually triggered
8-
;out pins, 32
9-
; pop off dummy reps value from OSR
10-
;out X, 32
117

128
start:
139
;wait 1 gpio TRIGGER_PIN
@@ -65,8 +61,8 @@ end_loop:
6561

6662

6763
% c-sdk {
68-
pio_sm_config prawn_do_program_init(PIO pio, uint state_machine, float div,
69-
uint offset){
64+
pio_sm_config prawn_do_program_init(PIO pio, uint state_machine, uint offset){
65+
7066
// Set pin direction of output pins to outputs
7167
pio_sm_set_consecutive_pindirs(pio, state_machine,
7268
prawn_do_OUTPUT_PIN_BASE,

0 commit comments

Comments
 (0)