diff --git a/components/vbus/prio_queue.c b/components/vbus/prio_queue.c index e0f57d1e05aeb1847be2f27cdd5533ac7e31fa71..b402e0376a5a70c99cc2e68f9f77e6a1310b4c38 100644 --- a/components/vbus/prio_queue.c +++ b/components/vbus/prio_queue.c @@ -1,7 +1,8 @@ /* * Priority Queue * - * COPYRIGHT (C) 2013, Shanghai Real-Thread Technology Co., Ltd + * COPYRIGHT (C) 2013-2015, Shanghai Real-Thread Technology Co., Ltd + * http://www.rt-thread.com * * This file is part of RT-Thread (http://www.rt-thread.org) * diff --git a/components/vbus/prio_queue.h b/components/vbus/prio_queue.h index 09bc3c7e63c9791021834f2e6244b1092072dda5..8a29cbb715013991d40f62a8c2dbf4b9b6038085 100644 --- a/components/vbus/prio_queue.h +++ b/components/vbus/prio_queue.h @@ -1,3 +1,32 @@ +/* + * Priority Queue + * + * COPYRIGHT (C) 2013-2015, Shanghai Real-Thread Technology Co., Ltd + * http://www.rt-thread.com + * + * This file is part of RT-Thread (http://www.rt-thread.org) + * + * All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Change Logs: + * Date Author Notes + * 2013-11-04 Grissiom add comment + */ + #ifndef __PRIO_QUEUE_H__ #define __PRIO_QUEUE_H__ diff --git a/components/vbus/rt_watermark_queue.c b/components/vbus/rt_watermark_queue.c index 9c551fa52566fa6ccf1b7771b40f5dbba9e31b7b..329e9f331c1f8cb751d094030e6c3e5672b61711 100644 --- a/components/vbus/rt_watermark_queue.c +++ b/components/vbus/rt_watermark_queue.c @@ -1,7 +1,8 @@ /* * Water Gauge * - * COPYRIGHT (C) 2014, Shanghai Real-Thread Technology Co., Ltd + * COPYRIGHT (C) 2014-2015, Shanghai Real-Thread Technology Co., Ltd + * http://www.rt-thread.com * * This file is part of RT-Thread (http://www.rt-thread.org) * diff --git a/components/vbus/rt_watermark_queue.h b/components/vbus/rt_watermark_queue.h index c29c65bda01303439b86170b89fea9349f3e36e3..1fd51e07c259bc8f2e8f0a4d82ce63e1ad9fb0f0 100644 --- a/components/vbus/rt_watermark_queue.h +++ b/components/vbus/rt_watermark_queue.h @@ -1,7 +1,8 @@ /* * Thread queue with water mark * - * COPYRIGHT (C) 2014, Shanghai Real-Thread Technology Co., Ltd + * COPYRIGHT (C) 2014-2015, Shanghai Real-Thread Technology Co., Ltd + * http://www.rt-thread.com * * This file is part of RT-Thread (http://www.rt-thread.org) * diff --git a/components/vbus/vbus.c b/components/vbus/vbus.c index 4ce618ee864e947a44fcf109462a2f01bb083b56..7005e5251393bb1c4c93d6a9c7da7a7252a71bf3 100644 --- a/components/vbus/vbus.c +++ b/components/vbus/vbus.c @@ -1,7 +1,8 @@ /* * VMM Bus * - * COPYRIGHT (C) 2013-2014, Shanghai Real-Thread Technology Co., Ltd + * COPYRIGHT (C) 2013-2015, Shanghai Real-Thread Technology Co., Ltd + * http://www.rt-thread.com * * This file is part of RT-Thread (http://www.rt-thread.org) * @@ -59,7 +60,7 @@ const static struct log_trace_session _lgs = { #define vbus_debug(fmt, ...) log_session_lvl(&_lgs, LOG_TRACE_LEVEL_DEBUG, fmt, ##__VA_ARGS__) #define vbus_verbose(fmt, ...) log_session_lvl(&_lgs, LOG_TRACE_LEVEL_VERBOSE, fmt, ##__VA_ARGS__) #define vbus_info(fmt, ...) log_session_lvl(&_lgs, LOG_TRACE_LEVEL_INFO, fmt, ##__VA_ARGS__) -#define vbus_error(fmt, ...) log_session_lvl(&_lgs, LOG_TRACE_LEVEL_ERROR, fmt, ##__VA_ARGS__) +#define vbus_error(fmt, ...) log_session_lvl(&_lgs, LOG_TRACE_LEVEL_ERROR, fmt, ##__VA_ARGS__) #else static struct log_trace_session _lgs = { .id = {.name = "vbus"}, @@ -68,7 +69,7 @@ static struct log_trace_session _lgs = { #define vbus_debug(fmt, ...) log_session(&_lgs, LOG_TRACE_DEBUG""fmt, ##__VA_ARGS__) #define vbus_verbose(fmt, ...) log_session(&_lgs, LOG_TRACE_VERBOSE""fmt, ##__VA_ARGS__) #define vbus_info(fmt, ...) log_session(&_lgs, LOG_TRACE_INFO""fmt, ##__VA_ARGS__) -#define vbus_error(fmt, ...) log_session(&_lgs, LOG_TRACE_ERROR""fmt, ##__VA_ARGS__) +#define vbus_error(fmt, ...) log_session(&_lgs, LOG_TRACE_ERROR""fmt, ##__VA_ARGS__) #endif #endif // RT_USING_LOGTRACE diff --git a/components/vbus/vbus.h b/components/vbus/vbus.h index 83f0bb295e15333e99811e2192eae97b823a7511..2187773a4791818d3608b5c7a27b992ff9765d33 100644 --- a/components/vbus/vbus.h +++ b/components/vbus/vbus.h @@ -3,7 +3,8 @@ /* * VBus * - * COPYRIGHT (C) 2013-2014, Shanghai Real-Thread Technology Co., Ltd + * COPYRIGHT (C) 2013-2015, Shanghai Real-Thread Technology Co., Ltd + * http://www.rt-thread.com * * This file is part of RT-Thread (http://www.rt-thread.org) * @@ -26,6 +27,7 @@ * Change Logs: * Date Author Notes * 2014-06-09 Grissiom version 2.0.2; add comment + * 2015-01-06 Grissiom version 2.0.3; API change, no functional changes */ #include "vbus_local_conf.h" diff --git a/components/vbus/vbus_chnx.c b/components/vbus/vbus_chnx.c index fab6b20c2d9d46b86b3deb50f6021971cfb5a449..bd54c9dbbd247e38d3f6e900433f9bcdc05f6740 100644 --- a/components/vbus/vbus_chnx.c +++ b/components/vbus/vbus_chnx.c @@ -1,7 +1,8 @@ /* * Channel on VMM Bus * - * COPYRIGHT (C) 2013, Shanghai Real-Thread Technology Co., Ltd + * COPYRIGHT (C) 2013-2015, Shanghai Real-Thread Technology Co., Ltd + * http://www.rt-thread.com * * This file is part of RT-Thread (http://www.rt-thread.org) *