- DEBUGMSG("(c%d)call c_can_register\n", pchip->chip_idx);
-
- // Validate pointer
- if ( NULL == pchip ) return -1;
-
- pchip->chip_config = c_can_chip_config;
- pchip->set_baud_rate = c_can_baud_rate;
- pchip->set_mask = c_can_mask;
- pchip->set_use_mask = c_can_use_mask;
- //pchip->set_message15_mask = c_can_extended_mask;
- pchip->clear_objects = c_can_clear_objects;
- pchip->config_irqs = c_can_config_irqs;
- pchip->pre_read_config = c_can_pre_read_config;
- //pchip->pre_write_config = c_can_pre_write_config;
- pchip->send_msg = c_can_send_msg;
- pchip->check_tx_stat = c_can_check_tx_stat;
- pchip->remote_request = c_can_remote_request;
- pchip->enable_configuration = c_can_enable_configuration;
- pchip->disable_configuration = c_can_disable_configuration;
- pchip->set_btregs = c_can_set_btregs;
- pchip->start_chip = c_can_start_chip;
- pchip->stop_chip = c_can_stop_chip;
- pchip->register_dump = c_can_registerdump;
-
- DEBUGMSG("-> ok\n");
- return 0;
+ chip->chip_type="c_can";
+ chip->max_objects = 32;
+ c_can_register(chip->chipspecops);
+ return 0;