~(ext_int_mode_pclk?(10'b1<<CAMSYNC_GPIO_EXT_IN):10'b0))==10'b0);// disable external trigger in line
// ~(ext_int_mode_pclk?(10'b1 << CAMSYNC_GPIO_EXT_IN):10'b0)) == 10'b0); // disable external trigger in line
trigger_condition_d<=trigger_condition;
// trigger_condition_mask_w is @ mclk, but input signal is asynchronous too, so filtering is needed anyway)
trigger_condition<=(|trigger_condition_mask_w)&&(((gpio_in[9:0]^input_pattern[9:0])&trigger_condition_mask_w)==10'b0);// disable external trigger in line