diff --git a/demos/bsp/boards/board.c b/demos/bsp/boards/board.c index 78f794c0..aca9f16e 100644 --- a/demos/bsp/boards/board.c +++ b/demos/bsp/boards/board.c @@ -7,7 +7,7 @@ /* * Software License Agreement (BSD License) - * Copyright (c) 2012, hathach (tinyusb.net) + * Copyright (c) 2013, hathach (tinyusb.net) * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, diff --git a/demos/bsp/boards/board.h b/demos/bsp/boards/board.h index 237c346d..611386c8 100644 --- a/demos/bsp/boards/board.h +++ b/demos/bsp/boards/board.h @@ -7,7 +7,7 @@ /* * Software License Agreement (BSD License) - * Copyright (c) 2012, hathach (tinyusb.net) + * Copyright (c) 2013, hathach (tinyusb.net) * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, diff --git a/demos/bsp/boards/board_at86rf2xx.c b/demos/bsp/boards/board_at86rf2xx.c index 476efdce..07471b99 100644 --- a/demos/bsp/boards/board_at86rf2xx.c +++ b/demos/bsp/boards/board_at86rf2xx.c @@ -7,7 +7,7 @@ /* * Software License Agreement (BSD License) - * Copyright (c) 2012, hathach (tinyusb.net) + * Copyright (c) 2013, hathach (tinyusb.net) * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, diff --git a/demos/bsp/boards/board_at86rf2xx.h b/demos/bsp/boards/board_at86rf2xx.h index 49fab2ea..0961e626 100644 --- a/demos/bsp/boards/board_at86rf2xx.h +++ b/demos/bsp/boards/board_at86rf2xx.h @@ -7,7 +7,7 @@ /* * Software License Agreement (BSD License) - * Copyright (c) 2012, hathach (tinyusb.net) + * Copyright (c) 2013, hathach (tinyusb.net) * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, diff --git a/demos/bsp/boards/board_ea4357.c b/demos/bsp/boards/board_ea4357.c index 1902e2ce..00a2af7b 100644 --- a/demos/bsp/boards/board_ea4357.c +++ b/demos/bsp/boards/board_ea4357.c @@ -7,7 +7,7 @@ /* * Software License Agreement (BSD License) - * Copyright (c) 2012, hathach (tinyusb.net) + * Copyright (c) 2013, hathach (tinyusb.net) * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, diff --git a/demos/bsp/boards/board_ea4357.h b/demos/bsp/boards/board_ea4357.h index faab1f4e..1b27ba13 100644 --- a/demos/bsp/boards/board_ea4357.h +++ b/demos/bsp/boards/board_ea4357.h @@ -7,7 +7,7 @@ /* * Software License Agreement (BSD License) - * Copyright (c) 2012, hathach (tinyusb.net) + * Copyright (c) 2013, hathach (tinyusb.net) * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, diff --git a/demos/bsp/boards/board_lpcxpresso1347.c b/demos/bsp/boards/board_lpcxpresso1347.c index 987a0ba8..5e5d276f 100644 --- a/demos/bsp/boards/board_lpcxpresso1347.c +++ b/demos/bsp/boards/board_lpcxpresso1347.c @@ -7,7 +7,7 @@ /* * Software License Agreement (BSD License) - * Copyright (c) 2012, hathach (tinyusb.net) + * Copyright (c) 2013, hathach (tinyusb.net) * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, diff --git a/demos/bsp/boards/board_lpcxpresso1347.h b/demos/bsp/boards/board_lpcxpresso1347.h index f9a9aa76..badaa52f 100644 --- a/demos/bsp/boards/board_lpcxpresso1347.h +++ b/demos/bsp/boards/board_lpcxpresso1347.h @@ -7,7 +7,7 @@ /* * Software License Agreement (BSD License) - * Copyright (c) 2012, hathach (tinyusb.net) + * Copyright (c) 2013, hathach (tinyusb.net) * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, diff --git a/demos/bsp/boards/board_ngx4330.c b/demos/bsp/boards/board_ngx4330.c index f6f469b5..8496638c 100644 --- a/demos/bsp/boards/board_ngx4330.c +++ b/demos/bsp/boards/board_ngx4330.c @@ -7,7 +7,7 @@ /* * Software License Agreement (BSD License) - * Copyright (c) 2012, hathach (tinyusb.net) + * Copyright (c) 2013, hathach (tinyusb.net) * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, diff --git a/demos/bsp/boards/printf_retarget.c b/demos/bsp/boards/printf_retarget.c index 232839b3..501213a3 100644 --- a/demos/bsp/boards/printf_retarget.c +++ b/demos/bsp/boards/printf_retarget.c @@ -7,7 +7,7 @@ /* * Software License Agreement (BSD License) - * Copyright (c) 2012, hathach (tinyusb.net) + * Copyright (c) 2013, hathach (tinyusb.net) * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, diff --git a/demos/host/.cproject b/demos/host/.cproject index 6d8f8efb..b9eebffc 100644 --- a/demos/host/.cproject +++ b/demos/host/.cproject @@ -429,6 +429,7 @@ + @@ -856,6 +857,7 @@ + diff --git a/demos/host/tusb_config.h b/demos/host/tusb_config.h index e3075142..84649267 100644 --- a/demos/host/tusb_config.h +++ b/demos/host/tusb_config.h @@ -7,7 +7,7 @@ /* * Software License Agreement (BSD License) - * Copyright (c) 2012, hathach (tinyusb.net) + * Copyright (c) 2013, hathach (tinyusb.net) * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, @@ -55,26 +55,36 @@ extern "C" { #endif +//--------------------------------------------------------------------+ +// HOST CONFIGURATION +//--------------------------------------------------------------------+ #define TUSB_CFG_HOST +//------------- CORE/CONTROLLER -------------// #define TUSB_CFG_HOST_CONTROLLER_NUM 1 -#define TUSB_CFG_HOST_DEVICE_MAX 1 -#define TUSB_CFG_CONFIGURATION_MAX 1 +#define TUSB_CFG_HOST_DEVICE_MAX 1 +#define TUSB_CFG_CONFIGURATION_MAX 1 -#define TUSB_CFG_HOST_HID_KEYBOARD +//------------- CLASS -------------// +#define TUSB_CFG_HOST_HID_KEYBOARD 1 +#define TUSB_CFG_HOST_HID_KEYBOARD_ENDPOINT_SIZE 64 -/// Enable Device Support +//--------------------------------------------------------------------+ +// DEVICE CONFIGURATION +//--------------------------------------------------------------------+ //#define TUSB_CFG_DEVICE -/// Enable CDC Support +//------------- CORE/CONTROLLER -------------// + +//------------- CLASS -------------// //#define TUSB_CFG_DEVICE_CDC - -/// Enable HID Keyboard support #define TUSB_CFG_DEVICE_HID_KEYBOARD - -/// Enable HID Mouse support //#define TUSB_CFG_DEVICE_HID_MOUSE +//--------------------------------------------------------------------+ +// COMMON CONFIGURATION +//--------------------------------------------------------------------+ + #define TUSB_CFG_DEBUG 3 #define TUSB_CFG_OS TUSB_OS_NONE diff --git a/tinyusb/class/cdc.c b/tinyusb/class/cdc.c index 138666f4..ca37d205 100644 --- a/tinyusb/class/cdc.c +++ b/tinyusb/class/cdc.c @@ -7,7 +7,7 @@ /* * Software License Agreement (BSD License) - * Copyright (c) 2012, hathach (tinyusb.net) + * Copyright (c) 2013, hathach (tinyusb.net) * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, diff --git a/tinyusb/class/cdc.h b/tinyusb/class/cdc.h index a33ec594..e261967d 100644 --- a/tinyusb/class/cdc.h +++ b/tinyusb/class/cdc.h @@ -7,7 +7,7 @@ /* * Software License Agreement (BSD License) - * Copyright (c) 2012, hathach (tinyusb.net) + * Copyright (c) 2013, hathach (tinyusb.net) * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, diff --git a/tinyusb/class/hid.c b/tinyusb/class/hid.c index 9433fe17..255f9461 100644 --- a/tinyusb/class/hid.c +++ b/tinyusb/class/hid.c @@ -7,7 +7,7 @@ /* * Software License Agreement (BSD License) - * Copyright (c) 2012, hathach (tinyusb.net) + * Copyright (c) 2013, hathach (tinyusb.net) * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, diff --git a/tinyusb/class/hid.h b/tinyusb/class/hid.h index cf9a4727..19d40c9c 100644 --- a/tinyusb/class/hid.h +++ b/tinyusb/class/hid.h @@ -7,7 +7,7 @@ /* * Software License Agreement (BSD License) - * Copyright (c) 2012, hathach (tinyusb.net) + * Copyright (c) 2013, hathach (tinyusb.net) * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, diff --git a/tinyusb/class/hid_device.h b/tinyusb/class/hid_device.h index 41bcb8fe..9d89a139 100644 --- a/tinyusb/class/hid_device.h +++ b/tinyusb/class/hid_device.h @@ -7,7 +7,7 @@ /* * Software License Agreement (BSD License) - * Copyright (c) 2012, hathach (tinyusb.net) + * Copyright (c) 2013, hathach (tinyusb.net) * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, diff --git a/tinyusb/class/hid_host.c b/tinyusb/class/hid_host.c index 645d60ac..bd6542dd 100644 --- a/tinyusb/class/hid_host.c +++ b/tinyusb/class/hid_host.c @@ -7,7 +7,7 @@ /* * Software License Agreement (BSD License) - * Copyright (c) 2012, hathach (tinyusb.net) + * Copyright (c) 2013, hathach (tinyusb.net) * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, diff --git a/tinyusb/class/hid_host.h b/tinyusb/class/hid_host.h index d1729b10..b41bafb1 100644 --- a/tinyusb/class/hid_host.h +++ b/tinyusb/class/hid_host.h @@ -7,7 +7,7 @@ /* * Software License Agreement (BSD License) - * Copyright (c) 2012, hathach (tinyusb.net) + * Copyright (c) 2013, hathach (tinyusb.net) * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, @@ -61,8 +61,8 @@ //--------------------------------------------------------------------+ // APPLICATION API //--------------------------------------------------------------------+ -uint8_t tusbh_hid_keyboard_no_instances(tusb_handle_device_t const device_hdl); -tusb_error_t tusbh_hid_keyboard_get(tusb_handle_device_t const handle, uint8_t instance_num, tusb_keyboard_report_t * const report); +uint8_t tusbh_hid_keyboard_no_instances(tusb_handle_device_t const device_hdl) ATTR_WARN_UNUSED_RESULT; +tusb_error_t tusbh_hid_keyboard_get(tusb_handle_device_t const handle, uint8_t instance_num, tusb_keyboard_report_t * const report) ATTR_WARN_UNUSED_RESULT; //--------------------------------------------------------------------+ // INTERNAL API @@ -81,7 +81,7 @@ typedef struct { } class_hid_keyboard_info_t; void class_hid_keyboard_init(void); -tusb_error_t class_hid_keyboard_install(uint8_t const dev_addr, uint8_t const *descriptor); +tusb_error_t class_hid_keyboard_install(uint8_t const dev_addr, uint8_t const *descriptor) ATTR_WARN_UNUSED_RESULT; #endif diff --git a/tinyusb/common/assertion.h b/tinyusb/common/assertion.h index f2812cd0..211a9607 100644 --- a/tinyusb/common/assertion.h +++ b/tinyusb/common/assertion.h @@ -7,7 +7,7 @@ /* * Software License Agreement (BSD License) - * Copyright (c) 2012, hathach (tinyusb.net) + * Copyright (c) 2013, hathach (tinyusb.net) * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, diff --git a/tinyusb/common/binary.h b/tinyusb/common/binary.h index 94648486..ef994ddb 100644 --- a/tinyusb/common/binary.h +++ b/tinyusb/common/binary.h @@ -7,7 +7,7 @@ /* * Software License Agreement (BSD License) - * Copyright (c) 2012, hathach (tinyusb.net) + * Copyright (c) 2013, hathach (tinyusb.net) * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, diff --git a/tinyusb/common/common.h b/tinyusb/common/common.h index 5a429ac9..3a02f27f 100644 --- a/tinyusb/common/common.h +++ b/tinyusb/common/common.h @@ -7,7 +7,7 @@ /* * Software License Agreement (BSD License) - * Copyright (c) 2012, hathach (tinyusb.net) + * Copyright (c) 2013, hathach (tinyusb.net) * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, @@ -80,6 +80,7 @@ #define STATIC_ #endif + /// form an uint32_t from 4 x uint8_t static inline uint32_t u32_from_u8(uint8_t b1, uint8_t b2, uint8_t b3, uint8_t b4) ATTR_ALWAYS_INLINE ATTR_CONST; static inline uint32_t u32_from_u8(uint8_t b1, uint8_t b2, uint8_t b3, uint8_t b4) diff --git a/tinyusb/common/compiler/compiler.h b/tinyusb/common/compiler/compiler.h index b09900a2..b3439f1b 100644 --- a/tinyusb/common/compiler/compiler.h +++ b/tinyusb/common/compiler/compiler.h @@ -7,7 +7,7 @@ /* * Software License Agreement (BSD License) - * Copyright (c) 2012, hathach (tinyusb.net) + * Copyright (c) 2013, hathach (tinyusb.net) * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, diff --git a/tinyusb/common/compiler/compiler_gcc.h b/tinyusb/common/compiler/compiler_gcc.h index 9bcb17a7..8732b6ce 100644 --- a/tinyusb/common/compiler/compiler_gcc.h +++ b/tinyusb/common/compiler/compiler_gcc.h @@ -7,7 +7,7 @@ /* * Software License Agreement (BSD License) - * Copyright (c) 2012, hathach (tinyusb.net) + * Copyright (c) 2013, hathach (tinyusb.net) * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, diff --git a/tinyusb/common/compiler/compiler_iar.h b/tinyusb/common/compiler/compiler_iar.h index 9682f214..85f98dee 100644 --- a/tinyusb/common/compiler/compiler_iar.h +++ b/tinyusb/common/compiler/compiler_iar.h @@ -7,7 +7,7 @@ /* * Software License Agreement (BSD License) - * Copyright (c) 2012, hathach (tinyusb.net) + * Copyright (c) 2013, hathach (tinyusb.net) * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, diff --git a/tinyusb/common/errors.c b/tinyusb/common/errors.c index 53e10d76..3cc6f838 100644 --- a/tinyusb/common/errors.c +++ b/tinyusb/common/errors.c @@ -7,7 +7,7 @@ /* * Software License Agreement (BSD License) - * Copyright (c) 2012, hathach (tinyusb.net) + * Copyright (c) 2013, hathach (tinyusb.net) * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, diff --git a/tinyusb/common/errors.h b/tinyusb/common/errors.h index e55ab3f4..caf099ae 100644 --- a/tinyusb/common/errors.h +++ b/tinyusb/common/errors.h @@ -7,7 +7,7 @@ /* * Software License Agreement (BSD License) - * Copyright (c) 2012, hathach (tinyusb.net) + * Copyright (c) 2013, hathach (tinyusb.net) * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, diff --git a/tinyusb/common/fifo.c b/tinyusb/common/fifo.c index ff64d3c5..ccb2c60f 100644 --- a/tinyusb/common/fifo.c +++ b/tinyusb/common/fifo.c @@ -7,7 +7,7 @@ /* * Software License Agreement (BSD License) - * Copyright (c) 2012, hathach (tinyusb.net) + * Copyright (c) 2013, hathach (tinyusb.net) * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, diff --git a/tinyusb/common/fifo.h b/tinyusb/common/fifo.h index c753e1d3..08d1305f 100644 --- a/tinyusb/common/fifo.h +++ b/tinyusb/common/fifo.h @@ -7,7 +7,7 @@ /* * Software License Agreement (BSD License) - * Copyright (c) 2012, hathach (tinyusb.net) + * Copyright (c) 2013, hathach (tinyusb.net) * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, diff --git a/tinyusb/core/std_descriptors.h b/tinyusb/core/std_descriptors.h index a98f2696..fe625159 100644 --- a/tinyusb/core/std_descriptors.h +++ b/tinyusb/core/std_descriptors.h @@ -7,7 +7,7 @@ /* * Software License Agreement (BSD License) - * Copyright (c) 2012, hathach (tinyusb.net) + * Copyright (c) 2013, hathach (tinyusb.net) * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, diff --git a/tinyusb/core/tusb_types.h b/tinyusb/core/tusb_types.h index 9add0f14..9550565d 100644 --- a/tinyusb/core/tusb_types.h +++ b/tinyusb/core/tusb_types.h @@ -7,7 +7,7 @@ /* * Software License Agreement (BSD License) - * Copyright (c) 2012, hathach (tinyusb.net) + * Copyright (c) 2013, hathach (tinyusb.net) * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, diff --git a/tinyusb/device/dcd.c b/tinyusb/device/dcd.c index 3ec2b951..d66de998 100644 --- a/tinyusb/device/dcd.c +++ b/tinyusb/device/dcd.c @@ -7,7 +7,7 @@ /* * Software License Agreement (BSD License) - * Copyright (c) 2012, hathach (tinyusb.net) + * Copyright (c) 2013, hathach (tinyusb.net) * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, diff --git a/tinyusb/device/dcd.h b/tinyusb/device/dcd.h index 7c976736..1b5fc54b 100644 --- a/tinyusb/device/dcd.h +++ b/tinyusb/device/dcd.h @@ -7,7 +7,7 @@ /* * Software License Agreement (BSD License) - * Copyright (c) 2012, hathach (tinyusb.net) + * Copyright (c) 2013, hathach (tinyusb.net) * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, diff --git a/tinyusb/doxygen/license.md b/tinyusb/doxygen/license.md index 51aa2be2..842b5109 100644 --- a/tinyusb/doxygen/license.md +++ b/tinyusb/doxygen/license.md @@ -1,7 +1,7 @@ # License
Software License Agreement (BSD License)
-Copyright (c) 2012, hathach (tinyusb.net)
+Copyright (c) 2013, hathach (tinyusb.net)
 All rights reserved.
 
 Redistribution and use in source and binary forms, with or without modification,
diff --git a/tinyusb/hal/hal.h b/tinyusb/hal/hal.h
index fa0110d9..80e1e071 100644
--- a/tinyusb/hal/hal.h
+++ b/tinyusb/hal/hal.h
@@ -7,7 +7,7 @@
 
 /*
  * Software License Agreement (BSD License)
- * Copyright (c) 2012, hathach (tinyusb.net)
+ * Copyright (c) 2013, hathach (tinyusb.net)
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without modification,
diff --git a/tinyusb/hal/hal_lpc11uxx.c b/tinyusb/hal/hal_lpc11uxx.c
index 7a382b79..748db46d 100644
--- a/tinyusb/hal/hal_lpc11uxx.c
+++ b/tinyusb/hal/hal_lpc11uxx.c
@@ -7,7 +7,7 @@
 
 /*
  * Software License Agreement (BSD License)
- * Copyright (c) 2012, hathach (tinyusb.net)
+ * Copyright (c) 2013, hathach (tinyusb.net)
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without modification,
diff --git a/tinyusb/hal/hal_lpc11uxx.h b/tinyusb/hal/hal_lpc11uxx.h
index 35d600e2..19fd79c2 100644
--- a/tinyusb/hal/hal_lpc11uxx.h
+++ b/tinyusb/hal/hal_lpc11uxx.h
@@ -7,7 +7,7 @@
 
 /*
  * Software License Agreement (BSD License)
- * Copyright (c) 2012, hathach (tinyusb.net)
+ * Copyright (c) 2013, hathach (tinyusb.net)
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without modification,
diff --git a/tinyusb/hal/hal_lpc13uxx.c b/tinyusb/hal/hal_lpc13uxx.c
index 02e3748c..0c76d1dd 100644
--- a/tinyusb/hal/hal_lpc13uxx.c
+++ b/tinyusb/hal/hal_lpc13uxx.c
@@ -7,7 +7,7 @@
 
 /*
  * Software License Agreement (BSD License)
- * Copyright (c) 2012, hathach (tinyusb.net)
+ * Copyright (c) 2013, hathach (tinyusb.net)
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without modification,
diff --git a/tinyusb/hal/hal_lpc13uxx.h b/tinyusb/hal/hal_lpc13uxx.h
index 78e71c9a..83d2f9ec 100644
--- a/tinyusb/hal/hal_lpc13uxx.h
+++ b/tinyusb/hal/hal_lpc13uxx.h
@@ -7,7 +7,7 @@
 
 /*
  * Software License Agreement (BSD License)
- * Copyright (c) 2012, hathach (tinyusb.net)
+ * Copyright (c) 2013, hathach (tinyusb.net)
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without modification,
diff --git a/tinyusb/hal/hal_lpc43xx.c b/tinyusb/hal/hal_lpc43xx.c
index f50ed563..9734c234 100644
--- a/tinyusb/hal/hal_lpc43xx.c
+++ b/tinyusb/hal/hal_lpc43xx.c
@@ -7,7 +7,7 @@
 
 /*
  * Software License Agreement (BSD License)
- * Copyright (c) 2012, hathach (tinyusb.net)
+ * Copyright (c) 2013, hathach (tinyusb.net)
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without modification,
diff --git a/tinyusb/hal/hal_lpc43xx.h b/tinyusb/hal/hal_lpc43xx.h
index d2be8190..0935b4bb 100644
--- a/tinyusb/hal/hal_lpc43xx.h
+++ b/tinyusb/hal/hal_lpc43xx.h
@@ -7,7 +7,7 @@
 
 /*
  * Software License Agreement (BSD License)
- * Copyright (c) 2012, hathach (tinyusb.net)
+ * Copyright (c) 2013, hathach (tinyusb.net)
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without modification,
diff --git a/tinyusb/host/hcd.c b/tinyusb/host/hcd.c
index 0fb6e68d..2c085566 100644
--- a/tinyusb/host/hcd.c
+++ b/tinyusb/host/hcd.c
@@ -7,7 +7,7 @@
 
 /*
  * Software License Agreement (BSD License)
- * Copyright (c) 2012, hathach (tinyusb.net)
+ * Copyright (c) 2013, hathach (tinyusb.net)
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without modification,
diff --git a/tinyusb/host/hcd.h b/tinyusb/host/hcd.h
index 63749d75..9ea26bdd 100644
--- a/tinyusb/host/hcd.h
+++ b/tinyusb/host/hcd.h
@@ -7,7 +7,7 @@
 
 /*
  * Software License Agreement (BSD License)
- * Copyright (c) 2012, hathach (tinyusb.net)
+ * Copyright (c) 2013, hathach (tinyusb.net)
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without modification,
diff --git a/tinyusb/host/usbd_host.c b/tinyusb/host/usbd_host.c
index 772503d2..65794b8a 100644
--- a/tinyusb/host/usbd_host.c
+++ b/tinyusb/host/usbd_host.c
@@ -7,7 +7,7 @@
 
 /*
  * Software License Agreement (BSD License)
- * Copyright (c) 2012, hathach (tinyusb.net)
+ * Copyright (c) 2013, hathach (tinyusb.net)
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without modification,
diff --git a/tinyusb/host/usbd_host.h b/tinyusb/host/usbd_host.h
index 8fb76a5a..e28ef812 100644
--- a/tinyusb/host/usbd_host.h
+++ b/tinyusb/host/usbd_host.h
@@ -7,7 +7,7 @@
 
 /*
  * Software License Agreement (BSD License)
- * Copyright (c) 2012, hathach (tinyusb.net)
+ * Copyright (c) 2013, hathach (tinyusb.net)
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without modification,
@@ -133,7 +133,7 @@ typedef uint32_t tusb_handle_device_t;
 //--------------------------------------------------------------------+
 void         tusbh_device_mounting_cb (tusb_error_t const error, tusb_handle_device_t const device_hdl);
 void         tusbh_device_mounted_cb (tusb_error_t const error, tusb_handle_device_t const device_hdl);
-tusb_error_t tusbh_configuration_set     (tusb_handle_device_t const device_hdl, uint8_t const configure_number);
+tusb_error_t tusbh_configuration_set     (tusb_handle_device_t const device_hdl, uint8_t const configure_number) ATTR_WARN_UNUSED_RESULT;
 
 
 //--------------------------------------------------------------------+
@@ -141,8 +141,8 @@ tusb_error_t tusbh_configuration_set     (tusb_handle_device_t const device_hdl,
 //--------------------------------------------------------------------+
 #ifdef _TINY_USB_SOURCE_FILE_
 
-bool          usbh_device_is_plugged(tusb_handle_device_t const device_hdl);
-pipe_status_t usbh_pipe_status_get(pipe_handle_t pipe_hdl);
+bool          usbh_device_is_plugged(tusb_handle_device_t const device_hdl) ATTR_WARN_UNUSED_RESULT;
+pipe_status_t usbh_pipe_status_get(pipe_handle_t pipe_hdl) ATTR_WARN_UNUSED_RESULT;
 
 #endif
 
diff --git a/tinyusb/license.txt b/tinyusb/license.txt
index bd84ee2e..9d72736a 100644
--- a/tinyusb/license.txt
+++ b/tinyusb/license.txt
@@ -1,6 +1,6 @@
 /*
  * Software License Agreement (BSD License)
- * Copyright (c) 2012, hathach (tinyusb.net)
+ * Copyright (c) 2013, hathach (tinyusb.net)
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without modification,
diff --git a/tinyusb/osal/osal.h b/tinyusb/osal/osal.h
index 2e3c2a2c..8284ae6f 100644
--- a/tinyusb/osal/osal.h
+++ b/tinyusb/osal/osal.h
@@ -7,7 +7,7 @@
 
 /*
  * Software License Agreement (BSD License)
- * Copyright (c) 2012, hathach (tinyusb.net)
+ * Copyright (c) 2013, hathach (tinyusb.net)
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without modification,
diff --git a/tinyusb/osal/osal_none.c b/tinyusb/osal/osal_none.c
index ee9aa76b..d32b0022 100644
--- a/tinyusb/osal/osal_none.c
+++ b/tinyusb/osal/osal_none.c
@@ -7,7 +7,7 @@
 
 /*
  * Software License Agreement (BSD License)
- * Copyright (c) 2012, hathach (tinyusb.net)
+ * Copyright (c) 2013, hathach (tinyusb.net)
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without modification,
diff --git a/tinyusb/osal/osal_none.h b/tinyusb/osal/osal_none.h
index 198e5dc2..c7b9acae 100644
--- a/tinyusb/osal/osal_none.h
+++ b/tinyusb/osal/osal_none.h
@@ -7,7 +7,7 @@
 
 /*
  * Software License Agreement (BSD License)
- * Copyright (c) 2012, hathach (tinyusb.net)
+ * Copyright (c) 2013, hathach (tinyusb.net)
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without modification,
diff --git a/tinyusb/tusb.c b/tinyusb/tusb.c
index d5cdf532..15a6a003 100644
--- a/tinyusb/tusb.c
+++ b/tinyusb/tusb.c
@@ -7,7 +7,7 @@
 
 /*
  * Software License Agreement (BSD License)
- * Copyright (c) 2012, hathach (tinyusb.net)
+ * Copyright (c) 2013, hathach (tinyusb.net)
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without modification,
diff --git a/tinyusb/tusb.h b/tinyusb/tusb.h
index 02a00d48..73a49b69 100644
--- a/tinyusb/tusb.h
+++ b/tinyusb/tusb.h
@@ -7,7 +7,7 @@
 
 /*
  * Software License Agreement (BSD License)
- * Copyright (c) 2012, hathach (tinyusb.net)
+ * Copyright (c) 2013, hathach (tinyusb.net)
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without modification,
diff --git a/tinyusb/tusb_option.h b/tinyusb/tusb_option.h
index f8483642..0b0d308a 100644
--- a/tinyusb/tusb_option.h
+++ b/tinyusb/tusb_option.h
@@ -7,7 +7,7 @@
 
 /*
  * Software License Agreement (BSD License)
- * Copyright (c) 2012, hathach (tinyusb.net)
+ * Copyright (c) 2013, hathach (tinyusb.net)
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without modification,