summaryrefslogtreecommitdiff
path: root/tinyusb/core
diff options
context:
space:
mode:
authorhathach <[email protected]>2013-02-04 13:13:07 +0700
committerhathach <[email protected]>2013-02-04 13:13:07 +0700
commita5b29c5d333fc5fe3bcd01de145e130765ed1d48 (patch)
tree02d62073dd521ce43e98ad46a5c177dd198e62c7 /tinyusb/core
parent5ec56120e678672c9da1953ad1890ecfa7bdb773 (diff)
refractor include chain with following policies
- header file only include what it needs for its declarations.
Diffstat (limited to 'tinyusb/core')
-rw-r--r--tinyusb/core/std_descriptors.h5
-rw-r--r--tinyusb/core/std_request.h5
-rw-r--r--tinyusb/core/tusb_types.h5
3 files changed, 13 insertions, 2 deletions
diff --git a/tinyusb/core/std_descriptors.h b/tinyusb/core/std_descriptors.h
index dc43bce76..b21a4ec95 100644
--- a/tinyusb/core/std_descriptors.h
+++ b/tinyusb/core/std_descriptors.h
@@ -52,7 +52,10 @@
extern "C" {
#endif
-#include "common/common.h"
+#include "tusb_option.h"
+#include "common/primitive_types.h"
+#include "common/compiler/compiler.h"
+#include "common/binary.h"
//--------------------------------------------------------------------+
// STANDARD DESCRIPTORS
diff --git a/tinyusb/core/std_request.h b/tinyusb/core/std_request.h
index 7b95fed8d..327bc85b7 100644
--- a/tinyusb/core/std_request.h
+++ b/tinyusb/core/std_request.h
@@ -55,7 +55,10 @@
extern "C" {
#endif
-#include "common/common.h"
+#include "tusb_option.h"
+#include "common/primitive_types.h"
+#include "common/compiler/compiler.h"
+#include "common/binary.h"
typedef ATTR_PREPACKED struct ATTR_PACKED {
struct {
diff --git a/tinyusb/core/tusb_types.h b/tinyusb/core/tusb_types.h
index b683b35c9..8198d3ceb 100644
--- a/tinyusb/core/tusb_types.h
+++ b/tinyusb/core/tusb_types.h
@@ -53,6 +53,11 @@
extern "C" {
#endif
+#include "tusb_option.h"
+#include "common/primitive_types.h"
+#include "common/compiler/compiler.h"
+#include "common/binary.h"
+
/// defined base on EHCI specs value for Endpoint Speed
typedef enum {
TUSB_SPEED_FULL = 0,