@@ -83,18 +83,19 @@ void common_hal_imagecapture_parallelimagecapture_construct(imagecapture_paralle
83
83
common_hal_mcu_processor_get_frequency (), // full speed (4 instructions per loop -> max pclk 30MHz @ 120MHz)
84
84
0 , 0 , // init
85
85
NULL , 0 , // may_exec
86
- NULL , 0 , 0 , 0 , // out pins
86
+ NULL , 0 , PIO_PINMASK32_NONE , PIO_PINMASK32_NONE , // out pins
87
87
pin_from_number (data_pins [0 ]), data_count , // in pins
88
- 0 , 0 , // in pulls
89
- NULL , 0 , 0 , 0 , // set pins
88
+ PIO_PINMASK32_NONE , PIO_PINMASK32_NONE , // in pulls
89
+ NULL , 0 , PIO_PINMASK32_NONE , PIO_PINMASK32_NONE , // set pins
90
90
#if DEBUG_STATE_MACHINE
91
- & pin_GPIO26 , 3 , 7 , 7 , // sideset pins
91
+ & pin_GPIO26 , 3 , PIO_PINMASK32_FROM_VALUE ( 7 ), PIO_PINMASK32_FROM_VALUE ( 7 ) , // sideset pins
92
92
#else
93
- NULL , 0 , false, 0 , 0 , // sideset pins
93
+ NULL , 0 , false, PIO_PINMASK32_NONE , PIO_PINMASK32_NONE , // sideset pins
94
94
#endif
95
95
false, // No sideset enable
96
96
NULL , PULL_NONE , // jump pin
97
- (1 << vertical_sync -> number ) | (1 << horizontal_reference -> number ) | (1 << data_clock -> number ), // wait gpio pins
97
+ PIO_PINMASK_OR3 (PIO_PINMASK_FROM_PIN (vertical_sync -> number ), PIO_PINMASK_FROM_PIN (horizontal_reference -> number ), PIO_PINMASK_FROM_PIN (data_clock -> number )),
98
+ // wait gpio pins
98
99
true, // exclusive pin use
99
100
false, 32 , false, // out settings
100
101
false, // wait for txstall
0 commit comments