summaryrefslogtreecommitdiff
path: root/tinyusb/device
diff options
context:
space:
mode:
authorhathach <[email protected]>2012-11-29 17:52:57 +0700
committerhathach <[email protected]>2012-11-29 17:52:57 +0700
commit879fb21f99020bfb13a300e6e61089c7d0aa4619 (patch)
treeffdfe88408f418847e7a35d4cd12246218e1a562 /tinyusb/device
parent2dd9501f37b8e2b2fdfa43b12469498646ae3fe5 (diff)
change license email to website
added support for cdc devices
Diffstat (limited to 'tinyusb/device')
-rw-r--r--tinyusb/device/dcd.c16
-rw-r--r--tinyusb/device/dcd.h4
2 files changed, 10 insertions, 10 deletions
diff --git a/tinyusb/device/dcd.c b/tinyusb/device/dcd.c
index a2cab2385..40a6044e3 100644
--- a/tinyusb/device/dcd.c
+++ b/tinyusb/device/dcd.c
@@ -2,12 +2,12 @@
* dcd.c
*
* Created on: Nov 27, 2012
- * Author: hathach ([email protected])
+ * Author: hathach
*/
/*
* Software License Agreement (BSD License)
- * Copyright (c) 2012, hathach ([email protected])
+ * Copyright (c) 2012, hathach (tinyusb.net)
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
@@ -60,11 +60,11 @@ ErrorCode_t USB_Configure_Event (USBD_HANDLE_T hUsb)
if (pCtrl->config_value)
{
#if defined(CLASS_HID)
- ASSERT( tERROR_NONE == usb_hid_configured(hUsb), ERR_FAILED );
+ ASSERT( tERROR_NONE == tusb_hid_configured(hUsb), ERR_FAILED );
#endif
- #ifdef CFG_USB_CDC
- ASSERT_STATUS( usb_cdc_configured(hUsb) );
+ #ifdef CFG_CLASS_CDC
+ ASSERT( tERROR_NONE == tusb_cdc_configured(hUsb), ERR_FAILED );
#endif
}
@@ -118,18 +118,18 @@ TUSB_Error_t dcd_init()
/* Initialise the class driver(s) */
#ifdef CFG_CLASS_CDC
- ASSERT_ERROR( usb_cdc_init(g_hUsb, &USB_FsConfigDescriptor.CDC_CCI_Interface,
+ ASSERT_ERROR( tusb_cdc_init(g_hUsb, &USB_FsConfigDescriptor.CDC_CCI_Interface,
&USB_FsConfigDescriptor.CDC_DCI_Interface, &membase, &memsize) );
#endif
#ifdef CFG_CLASS_HID_KEYBOARD
- ASSERT_ERROR( usb_hid_init(g_hUsb , &USB_FsConfigDescriptor.HID_KeyboardInterface ,
+ ASSERT_ERROR( tusb_hid_init(g_hUsb , &USB_FsConfigDescriptor.HID_KeyboardInterface ,
HID_KeyboardReportDescriptor, USB_FsConfigDescriptor.HID_KeyboardHID.DescriptorList[0].wDescriptorLength,
&membase , &memsize) );
#endif
#ifdef CFG_CLASS_HID_MOUSE
- ASSERT_ERROR( usb_hid_init(g_hUsb , &USB_FsConfigDescriptor.HID_MouseInterface ,
+ ASSERT_ERROR( tusb_hid_init(g_hUsb , &USB_FsConfigDescriptor.HID_MouseInterface ,
HID_MouseReportDescriptor, USB_FsConfigDescriptor.HID_MouseHID.DescriptorList[0].wDescriptorLength,
&membase , &memsize) );
#endif
diff --git a/tinyusb/device/dcd.h b/tinyusb/device/dcd.h
index aefdaede1..ffd89b0a9 100644
--- a/tinyusb/device/dcd.h
+++ b/tinyusb/device/dcd.h
@@ -2,12 +2,12 @@
* dcd.h
*
* Created on: Nov 26, 2012
- * Author: hathach ([email protected])
+ * Author: hathach
*/
/*
* Software License Agreement (BSD License)
- * Copyright (c) 2012, hathach ([email protected])
+ * Copyright (c) 2012, hathach (tinyusb.net)
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,