summaryrefslogtreecommitdiff
path: root/tinyusb/common/compiler
diff options
context:
space:
mode:
authorhathach <[email protected]>2012-11-29 10:41:33 +0700
committerhathach <[email protected]>2012-11-29 10:41:33 +0700
commit8cd811e2a9760afc1702ae0a872e999517bfcb40 (patch)
tree09ec2245a515fad540e60ebcf1da915de99e99fd /tinyusb/common/compiler
parent851f5bfd06c837626ddf06f1c326970763d07010 (diff)
start to work with doxygen
fix mem_size/mem_base usage with device rom driver
Diffstat (limited to 'tinyusb/common/compiler')
-rw-r--r--tinyusb/common/compiler/compiler.h22
-rw-r--r--tinyusb/common/compiler/compiler_gcc.h19
2 files changed, 26 insertions, 15 deletions
diff --git a/tinyusb/common/compiler/compiler.h b/tinyusb/common/compiler/compiler.h
index 6621b4160..4aae60f22 100644
--- a/tinyusb/common/compiler/compiler.h
+++ b/tinyusb/common/compiler/compiler.h
@@ -35,19 +35,25 @@
* This file is part of the tiny usb stack.
*/
+/** \file
+ * \brief Compiler Header
+ *
+ * \note TBD
+ */
+
+/** \ingroup Group_Common
+ * \defgroup Group_Compiler Compiler
+ * \brief Group_Compiler brief
+ *
+ * @{
+ */
+
#ifndef _TUSB_COMPILER_H_
#define _TUSB_COMPILER_H_
-#ifdef __cplusplus
- extern "C" {
-#endif
-
#if defined(__GNUC__)
#include "compiler_gcc.h"
#endif
-#ifdef __cplusplus
- }
-#endif
-
#endif /* _TUSB_COMPILER_H_ */
+/// @}
diff --git a/tinyusb/common/compiler/compiler_gcc.h b/tinyusb/common/compiler/compiler_gcc.h
index 38ef5f20f..d3047a544 100644
--- a/tinyusb/common/compiler/compiler_gcc.h
+++ b/tinyusb/common/compiler/compiler_gcc.h
@@ -35,9 +35,16 @@
* This file is part of the tiny usb stack.
*/
-#ifdef __cplusplus
- extern "C" {
-#endif
+/** \file
+ * \brief GCC Header
+ *
+ * \note TBD
+ */
+
+/** \ingroup Group_Compiler
+ *
+ * @{
+ */
#ifndef _TUSB_COMPILER_GCC_H_
#define _TUSB_COMPILER_GCC_H_
@@ -56,8 +63,6 @@
#define ATTR_WARN_UNUSED_RESULT __attribute__ ((warn_unused_result))
#define ATTR_ALWAYS_INLINE __attribute__ ((always_inline))
-#ifdef __cplusplus
- }
-#endif
-
#endif /* _TUSB_COMPILER_GCC_H_ */
+
+/// @}