Skip to content

Commit c9f811a

Browse files
committed
Fix bug where software starts required hardware triggers.
1 parent eaebfc5 commit c9f811a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

prawn_do/prawn_do.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,16 @@
1818
#include "fast_serial.h"
1919

2020
#define LED_PIN 25
21-
// output pins to use, much match pio
21+
// output pins to use, must match pio
2222
#define OUTPUT_PIN_BASE 0
2323
#define OUTPUT_WIDTH 16
2424
// mask which bits we are using
2525
uint32_t output_mask = ((1 << OUTPUT_WIDTH) - 1) << OUTPUT_PIN_BASE;
2626
// command type enum
2727
enum COMMAND {
28-
BUFFERED_HWSTART = 3 << OUTPUT_WIDTH,
2928
BUFFERED = 1 << OUTPUT_WIDTH,
29+
HWSTART = 2 << OUTPUT_WIDTH,
30+
BUFFERED_HWSTART = BUFFERED | HWSTART,
3031
MANUAL = 0
3132
};
3233

@@ -200,7 +201,7 @@ void core1_entry() {
200201

201202
if(command & BUFFERED){
202203
// buffered execution
203-
uint32_t hwstart = (command & BUFFERED_HWSTART);
204+
uint32_t hwstart = (command & HWSTART);
204205

205206
set_status(TRANSITION_TO_RUNNING);
206207
if(debug){

0 commit comments

Comments
 (0)