summaryrefslogtreecommitdiff
path: root/tinyusb/common
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/common
parent2dd9501f37b8e2b2fdfa43b12469498646ae3fe5 (diff)
change license email to website
added support for cdc devices
Diffstat (limited to 'tinyusb/common')
-rw-r--r--tinyusb/common/arch/arch.h2
-rw-r--r--tinyusb/common/arch/arch_lpc11xx.h60
-rw-r--r--tinyusb/common/arch/arch_lpc134x.h4
-rw-r--r--tinyusb/common/arch/arch_lpc43xx.h4
-rw-r--r--tinyusb/common/arch/arm_mx.h4
-rw-r--r--tinyusb/common/common.h4
-rw-r--r--tinyusb/common/compiler/compiler.h4
-rw-r--r--tinyusb/common/compiler/compiler_gcc.h6
-rw-r--r--tinyusb/common/errors.c4
-rw-r--r--tinyusb/common/errors.h4
-rw-r--r--tinyusb/common/errors_def4
-rw-r--r--tinyusb/common/fifo.c4
-rw-r--r--tinyusb/common/fifo.h4
13 files changed, 84 insertions, 24 deletions
diff --git a/tinyusb/common/arch/arch.h b/tinyusb/common/arch/arch.h
index dba662416..d67c5510e 100644
--- a/tinyusb/common/arch/arch.h
+++ b/tinyusb/common/arch/arch.h
@@ -7,7 +7,7 @@
/*
* 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,
diff --git a/tinyusb/common/arch/arch_lpc11xx.h b/tinyusb/common/arch/arch_lpc11xx.h
new file mode 100644
index 000000000..6e5990f33
--- /dev/null
+++ b/tinyusb/common/arch/arch_lpc11xx.h
@@ -0,0 +1,60 @@
+/*
+ * arch_lpc11xx.h
+ *
+ * Created on: Nov 29, 2012
+ * Author: hathach
+ */
+
+/*
+ * Software License Agreement (BSD License)
+ * Copyright (c) 2012, hathach (tinyusb.net)
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice,
+ * this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
+ * 3. The name of the author may not be used to endorse or promote products
+ * derived from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
+ * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
+ * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
+ * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
+ * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
+ * OF SUCH DAMAGE.
+ *
+ * This file is part of the tiny usb stack.
+ */
+
+/** \file
+ * \brief LPC11xx Header File
+ *
+ * \note TBD
+ */
+
+/** \ingroup Group_Arch
+ *
+ * @{
+ */
+
+#ifndef ARCH_LPC11XX_H_
+#define ARCH_LPC11XX_H_
+
+#define ARM_M0
+#define DEVICE_ROMDRIVER
+
+#include "arm_mx.h"
+#include "LPC11Uxx.h"
+
+#endif /* ARCH_LPC11XX_H_ */
+
+/** @} */
diff --git a/tinyusb/common/arch/arch_lpc134x.h b/tinyusb/common/arch/arch_lpc134x.h
index a9b9cb7c2..f4539acf7 100644
--- a/tinyusb/common/arch/arch_lpc134x.h
+++ b/tinyusb/common/arch/arch_lpc134x.h
@@ -2,12 +2,12 @@
* arch_lpc134x.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,
diff --git a/tinyusb/common/arch/arch_lpc43xx.h b/tinyusb/common/arch/arch_lpc43xx.h
index 05c177cc0..b80f44c65 100644
--- a/tinyusb/common/arch/arch_lpc43xx.h
+++ b/tinyusb/common/arch/arch_lpc43xx.h
@@ -2,12 +2,12 @@
* arch_lpc43xx.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,
diff --git a/tinyusb/common/arch/arm_mx.h b/tinyusb/common/arch/arm_mx.h
index ff77bff89..074f466f1 100644
--- a/tinyusb/common/arch/arm_mx.h
+++ b/tinyusb/common/arch/arm_mx.h
@@ -2,12 +2,12 @@
* arm_mx.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,
diff --git a/tinyusb/common/common.h b/tinyusb/common/common.h
index 4d4dd1909..44158f487 100644
--- a/tinyusb/common/common.h
+++ b/tinyusb/common/common.h
@@ -2,12 +2,12 @@
* common.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,
diff --git a/tinyusb/common/compiler/compiler.h b/tinyusb/common/compiler/compiler.h
index 4aae60f22..3ff94b3a4 100644
--- a/tinyusb/common/compiler/compiler.h
+++ b/tinyusb/common/compiler/compiler.h
@@ -2,12 +2,12 @@
* compiler.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,
diff --git a/tinyusb/common/compiler/compiler_gcc.h b/tinyusb/common/compiler/compiler_gcc.h
index 8e2c89f28..a68d509d8 100644
--- a/tinyusb/common/compiler/compiler_gcc.h
+++ b/tinyusb/common/compiler/compiler_gcc.h
@@ -2,12 +2,12 @@
* compiler_gcc.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,
@@ -103,7 +103,7 @@
/// The alias attribute causes the declaration to be emitted as an alias for another symbol, which must be specified
#define ATTR_ALIAS(func) __attribute__ ((alias(#func)))
-/// The weakref attribute marks a declaration as a weak reference. It is equivalent with weak + alias attribute
+/// The weakref attribute marks a declaration as a weak reference. It is equivalent with weak + alias attribute, but require function is static
#define ATTR_WEAKREF(func) __attribute__ ((weakref(#func)))
/// The warn_unused_result attribute causes a warning to be emitted if a caller of the function with this attribute does not use its return value. This is useful for functions where not checking the result is either a security problem or always a bug
diff --git a/tinyusb/common/errors.c b/tinyusb/common/errors.c
index 26db61241..a1042b058 100644
--- a/tinyusb/common/errors.c
+++ b/tinyusb/common/errors.c
@@ -2,12 +2,12 @@
* errors.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,
diff --git a/tinyusb/common/errors.h b/tinyusb/common/errors.h
index d34b01963..48ff86aa2 100644
--- a/tinyusb/common/errors.h
+++ b/tinyusb/common/errors.h
@@ -2,12 +2,12 @@
* errors.h
*
* 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,
diff --git a/tinyusb/common/errors_def b/tinyusb/common/errors_def
index 927c72d7d..55c9fdbdf 100644
--- a/tinyusb/common/errors_def
+++ b/tinyusb/common/errors_def
@@ -2,12 +2,12 @@
* errors_def
*
* 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,
diff --git a/tinyusb/common/fifo.c b/tinyusb/common/fifo.c
index 1a8d3cce5..e72a5988d 100644
--- a/tinyusb/common/fifo.c
+++ b/tinyusb/common/fifo.c
@@ -2,12 +2,12 @@
* fifo.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,
diff --git a/tinyusb/common/fifo.h b/tinyusb/common/fifo.h
index 3ee9da7e6..c0340517c 100644
--- a/tinyusb/common/fifo.h
+++ b/tinyusb/common/fifo.h
@@ -2,12 +2,12 @@
* fifo.h
*
* 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,