File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 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
2525uint32_t output_mask = ((1 << OUTPUT_WIDTH ) - 1 ) << OUTPUT_PIN_BASE ;
2626// command type enum
2727enum 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 ){
You can’t perform that action at this time.
0 commit comments