diff options
| author | hathach <[email protected]> | 2013-01-27 13:50:40 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-01-27 13:50:40 +0700 |
| commit | 535f33002670dc0ca20aa73d7c025faea15b88d0 (patch) | |
| tree | d043b0dcdc573d011e9dad06882720190ba74a3c /tinyusb | |
| parent | f613c32422a9b1815785d38427d3096a97bd3457 (diff) | |
update license year from 2012 to 2013
Diffstat (limited to 'tinyusb')
40 files changed, 47 insertions, 46 deletions
diff --git a/tinyusb/class/cdc.c b/tinyusb/class/cdc.c index 138666f45..ca37d205f 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 a33ec594b..e261967dd 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 9433fe17d..255f94617 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 cf9a47278..19d40c9ca 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 41bcb8fe7..9d89a139a 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 645d60ac0..bd6542ddb 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 d1729b10b..b41bafb15 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 f2812cd08..211a96073 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 94648486e..ef994ddb0 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 5a429ac91..3a02f27f3 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 b09900a2a..b3439f1b6 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 9bcb17a7c..8732b6cef 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 9682f2145..85f98deed 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 53e10d763..3cc6f838c 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 e55ab3f4e..caf099ae1 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 ff64d3c52..ccb2c60fc 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 c753e1d39..08d1305f3 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 a98f26966..fe6251592 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 9add0f141..9550565d0 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 3ec2b951c..d66de9987 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 7c976736e..1b5fc54b9 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 51aa2be2d..842b51097 100644 --- a/tinyusb/doxygen/license.md +++ b/tinyusb/doxygen/license.md @@ -1,7 +1,7 @@ # License <pre>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 fa0110d9a..80e1e0712 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 7a382b790..748db46d4 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 35d600e25..19fd79c23 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 02e3748c4..0c76d1ddd 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 78e71c9a1..83d2f9ecd 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 f50ed563e..9734c234c 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 d2be81906..0935b4bbf 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 0fb6e68df..2c085566e 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 63749d75b..9ea26bdda 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 772503d28..65794b8ad 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 8fb76a5a9..e28ef812d 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 bd84ee2ea..9d72736ac 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 2e3c2a2cf..8284ae6f8 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 ee9aa76bf..d32b00225 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 198e5dc2c..c7b9acae0 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 d5cdf532b..15a6a003d 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 02a00d48d..73a49b69d 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 f84836428..0b0d308a2 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, |
