break;
}
}
+ if(i <= ni_660x_max_rtsi_channel) break;
for(i = 0; i <= ni_660x_max_source_pin; ++i)
{
if(clock_select_bits == NI_GPCT_SOURCE_PIN_CLOCK_SRC_BITS(i))
break;
}
}
+ if(i <= ni_660x_max_source_pin) break;
ni_660x_clock = 0;
BUG();
break;
break;
}
}
+ if(i <= ni_m_series_max_rtsi_channel) break;
for(i = 0; i <= ni_m_series_max_pfi_channel; ++i)
{
if(clock_select_bits == NI_GPCT_PFI_CLOCK_SRC_BITS(i))
break;
}
}
+ if(i <= ni_m_series_max_pfi_channel) break;
+ rt_printk("invalid clock source 0x%lx\n", (unsigned long)clock_source);
BUG();
ni_m_series_clock = 0;
break;
break;
}
}
+ if(i <= ni_m_series_max_rtsi_channel) break;
for(i = 0; i <= ni_m_series_max_pfi_channel; ++i)
{
if(input_select == NI_M_Series_PFI_Clock(i))
break;
}
}
+ if(i <= ni_m_series_max_pfi_channel) break;
BUG();
break;
}
break;
}
}
+ if(i <= ni_660x_max_rtsi_channel) break;
for(i = 0; i <= ni_660x_max_source_pin; ++i)
{
if(input_select == NI_660x_Source_Pin_Clock(i))
break;
}
}
+ if(i <= ni_660x_max_source_pin) break;
BUG();
break;
}
break;
}
}
- for(i = 0; i <= ni_660x_max_source_pin; ++i)
+ if(i <= ni_660x_max_rtsi_channel) break;
+ for(i = 0; i <= ni_660x_max_gate_pin; ++i)
{
- if(selected_gate == NI_GPCT_UP_DOWN_PIN_GATE_SELECT(i))
+ if(selected_gate == NI_GPCT_GATE_PIN_GATE_SELECT(i))
{
ni_660x_gate_select = selected_gate & selected_gate_mask;
break;
}
}
+ if(i <= ni_660x_max_gate_pin) break;
return -EINVAL;
break;
}
break;
}
}
+ if(i <= ni_m_series_max_rtsi_channel) break;
for(i = 0; i <= ni_m_series_max_pfi_channel; ++i)
{
if(selected_gate == NI_GPCT_PFI_GATE_SELECT(i))
break;
}
}
+ if(i <= ni_m_series_max_pfi_channel) break;
return -EINVAL;
break;
}
break;
}
}
- for(i = 0; i <= ni_660x_max_source_pin; ++i)
+ if(i <= ni_660x_max_rtsi_channel) break;
+ for(i = 0; i <= ni_660x_max_up_down_pin; ++i)
{
if(selected_second_gate == NI_GPCT_UP_DOWN_PIN_GATE_SELECT(i))
{
break;
}
}
+ if(i <= ni_660x_max_up_down_pin) break;
return -EINVAL;
break;
};
break;
}
}
+ if(i <= ni_660x_max_rtsi_channel) break;
for(i = 0; i <= ni_660x_max_gate_pin; ++i)
{
if(ni_660x_gate_select == NI_660x_Gate_Pin_Gate_Select(i))
break;
}
}
+ if(i <= ni_660x_max_gate_pin) break;
BUG();
break;
}
break;
}
}
+ if(i <= ni_m_series_max_rtsi_channel) break;
for(i = 0; i <= ni_m_series_max_pfi_channel; ++i)
{
if(ni_m_series_gate_select == NI_M_Series_PFI_Gate_Select(i))
break;
}
}
+ if(i <= ni_m_series_max_pfi_channel) break;
BUG();
break;
}
break;
}
}
+ if(i <= ni_660x_max_rtsi_channel) break;
for(i = 0; i <= ni_660x_max_up_down_pin; ++i)
{
if(ni_660x_gate_select == NI_660x_Up_Down_Pin_Second_Gate_Select(i))
break;
}
}
+ if(i <= ni_660x_max_up_down_pin) break;
BUG();
break;
}