rendered paste body case 0x40:
boards++;
rtapi_print_msg(RTAPI_MSG_INFO, "Univ. Stepper Controller\n");
rv1 += export_UxC_digin(slot, bus);
rv1 += export_UxC_digout(slot, bus);
rv1 += export_USC_stepgen(slot, bus);
rv1 += export_encoders(slot, bus);
bus_slot_code = (busnum << 4) | slotnum;
need_extra_dac = 0;
need_extra_dout = 0;
for ( n = 0; n < MAX_BUS*8 ; n++ ) {
if ( extradac[n] == bus_slot_code ) {
need_extra_dac = 1;
extradac[n] = -1;
}
if ( extradout[n] == bus_slot_code ) {
need_extra_dout = 1;
extradout[n] = -1;
}
}
if ( need_extra_dac && need_extra_dout ) {
rtapi_print_msg(RTAPI_MSG_ERR, "Can't have extra DAC and DOUT on same slot\n");
} else if ( need_extra_dac ) {
rv1 += export_extra_dac(slot, bus);
} else if ( need_extra_dout ) {
rv1 += export_extra_dout(slot, bus);
}
/* the USC occupies two slots, so skip the second one */
slotnum++;
break;