Пример #1
0
void _p0_cf_register(int first)
{
  int xlnk_init_done = cf_xlnk_open(first);
  if (xlnk_init_done == 0) {
    accel_register(&_sds__p0_get_0);
    accel_register(&_sds__p0_set_0);
    cf_xlnk_init(first);
  }
  else if (xlnk_init_done <0) {
    fprintf(stderr, "ERROR: unable to open xlnk %d\n", xlnk_init_done);
  }
  else {
  }
}
Пример #2
0
void _p0_cf_register(int first)
{
  int xlnk_init_done = cf_xlnk_open(first);
  if (xlnk_init_done == 0) {
    axi_dma_simple_register(&_p0_datamover_0);
    axi_dma_simple_register(&_p0_datamover_1);
    axi_dma_simple_register(&_p0_datamover_2);
    accel_register(&_sds__p0_mmult_0);
    cf_xlnk_init(first);
  }
  else if (xlnk_init_done <0) {
    fprintf(stderr, "ERROR: unable to open xlnk %d\n", xlnk_init_done);
  }
  else {
  }
}