From a5b29c5d333fc5fe3bcd01de145e130765ed1d48 Mon Sep 17 00:00:00 2001 From: hathach Date: Mon, 4 Feb 2013 13:13:07 +0700 Subject: refractor include chain with following policies - header file only include what it needs for its declarations. --- tinyusb/core/std_descriptors.h | 5 ++++- tinyusb/core/std_request.h | 5 ++++- tinyusb/core/tusb_types.h | 5 +++++ 3 files changed, 13 insertions(+), 2 deletions(-) (limited to 'tinyusb/core') 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, -- cgit v1.3.1