Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- case HM2_SSERIAL_TYPE_8I20: // 8i20 found
- inst->tag_8i20 |= (1 << c);
- inst->tag_all |= (1 << c);
- inst->num_8i20 += 1;
- inst->num_all += 1;
- break;
- case HM2_SSERIAL_TYPE_7I64: // 7i64 found
- inst->tag_7i64 |= (1 << c);
- inst->tag_all |= (1 << c);
- inst->num_7i64 += 1;
- inst->num_all += 1;
- break;
- <<<<<<< HEAD
- default: // Unknown card, so create raw register access
- inst->tag_other |= (1 << c);
- inst->tag_all |= (1 << c);
- inst->num_other += 1;
- inst->num_all += 1;
- break;
- |||||||
- default:
- HM2_ERR("Unsupported Device ID %X found on sserial %d "
- "channel %d\n", buff, i, c);
- =======
- default:
- HM2_ERR("Unsupported Device ID %4s found on sserial %d "
- "channel %d\n", (char*)&buff, i, c);
- >>>>>>> v2.5_branch
- }
- }
- if (inst->num_all > 0){
- r = hal_pin_bit_newf(HAL_IN, &(inst->run),
- hm2->llio->comp_id,
- "%s.sserial.port-%1d.run",
- hm2->llio->name, i);
- if (r < 0) {
- HM2_ERR("error adding pin %s.sserial.%1d.run. aborting\n",
- hm2->llio->name, i);
- goto fail0;
- }
- ...
- typedef struct {
- hm2_lowlevel_io_t *llio;
- struct {
- int num_encoders;
- int num_pwmgens;
- int num_tp_pwmgens;
- int num_stepgens;
- int num_leds;
- int num_sserials;
- <<<<<<< HEAD
- int num_bspis;
- int num_sserial_chans[4];
- |||||||
- int num_sserial_chans[4];
- =======
- char sserial_modes[4][8];
- >>>>>>> v2.5_branch
- int enable_raw;
- char *firmware;
- } config;
- char config_name[HM2_CONFIGNAME_LENGTH + 1];
- u16 idrom_offset;
- hm2_idrom_t idrom;
- hm2_module_descriptor_t md[HM2_MAX_MODULE_DESCRIPTORS];
- int num_mds;
- hm2_pin_t *pin;
- int num_pins;
- // this keeps track of all the tram entries
- struct list_head tram_read_entries;
- u32 *tram_read_buffer;
- u16 tram_read_size;
- struct list_head tram_write_entries;
- u32 *tram_write_buffer;
- u16 tram_write_size;
- // the hostmot2 "Functions"
- hm2_encoder_t encoder;
- hm2_pwmgen_t pwmgen;
- hm2_tp_pwmgen_t tp_pwmgen;
- hm2_stepgen_t stepgen;
- hm2_sserial_t sserial;
- hm2_bspi_t bspi;
- hm2_ioport_t ioport;
- hm2_watchdog_t watchdog;
- hm2_led_t led;
- hm2_raw_t *raw;
- struct list_head list;
- } hostmot2_t;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement