@@ -83,18 +83,19 @@ void common_hal_imagecapture_parallelimagecapture_construct(imagecapture_paralle
8383 common_hal_mcu_processor_get_frequency (), // full speed (4 instructions per loop -> max pclk 30MHz @ 120MHz)
8484 0 , 0 , // init
8585 NULL , 0 , // may_exec
86- NULL , 0 , 0 , 0 , // out pins
86+ NULL , 0 , PIO_PINMASK32_NONE , PIO_PINMASK32_NONE , // out pins
8787 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
9090 #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
9292 #else
93- NULL , 0 , false, 0 , 0 , // sideset pins
93+ NULL , 0 , false, PIO_PINMASK32_NONE , PIO_PINMASK32_NONE , // sideset pins
9494 #endif
9595 false, // No sideset enable
9696 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
9899 true, // exclusive pin use
99100 false, 32 , false, // out settings
100101 false, // wait for txstall
0 commit comments