]> rtime.felk.cvut.cz Git - lincan.git/commitdiff
Adding usbcan file structure
authorJan Kriz <krizj1@fel.cvut.cz>
Tue, 15 Jul 2008 10:19:02 +0000 (12:19 +0200)
committerppisa <pisa@cmp.felk.cvut.cz>
Tue, 15 Jul 2008 10:19:00 +0000 (12:19 +0200)
lincan/include/usbcan.h [new file with mode: 0644]
lincan/src/boardlist.c
lincan/src/usbcan.c [new file with mode: 0644]

diff --git a/lincan/include/usbcan.h b/lincan/include/usbcan.h
new file mode 100644 (file)
index 0000000..e69de29
index 7c848d4db33faf3b2ea6006879a0d0a0cd614f57..46d606309bd88feedbba69c8285eaebff99b35f5 100644 (file)
@@ -44,6 +44,7 @@ extern int ts7kv_register(struct hwspecops_t *hwspecops);
 extern int ns_dev_register(struct hwspecops_t *hwspecops);
 extern int hms30c7202_register(struct hwspecops_t *hwspecops);
 extern int nsi_canpci_register(struct hwspecops_t *hwspecops);
+extern int usbcan_register(struct hwspecops_t *hwspecops);
 
 const struct boardtype_t can_boardtypes[]={
     #ifdef CONFIG_OC_LINCAN_CARD_template
@@ -147,6 +148,9 @@ const struct boardtype_t can_boardtypes[]={
     #endif
     #if defined(CONFIG_OC_LINCAN_CARD_nsi_canpci)&&defined(CAN_ENABLE_PCI_SUPPORT)
        {"nsicanpci", nsi_canpci_register, 1},
+    #endif
+    #if defined(CONFIG_OC_LINCAN_CARD_usbcan)
+       {"nsicanpci", usbcan_register, 0},
     #endif
        {NULL}
 };
diff --git a/lincan/src/usbcan.c b/lincan/src/usbcan.c
new file mode 100644 (file)
index 0000000..e69de29