minor clean up

This commit is contained in:
hathach 2021-05-10 19:15:46 +07:00
parent 42a1d2f3b9
commit 13de8f5d98
10 changed files with 11 additions and 9 deletions

View File

@ -309,6 +309,8 @@ typedef struct TU_ATTR_PACKED
uint8_t bMaxPower ; ///< Maximum power consumption of the USB device from the bus in this specific configuration when the device is fully operational. Expressed in 2 mA units (i.e., 50 = 100 mA).
} tusb_desc_configuration_t;
TU_VERIFY_STATIC( sizeof(tusb_desc_configuration_t) == 9, "size is not correct");
/// USB Interface Descriptor
typedef struct TU_ATTR_PACKED
{

View File

@ -27,7 +27,6 @@
*/
#include "tusb_option.h"
#include "common/tusb_fifo.h"
#if (((CFG_TUSB_MCU == OPT_MCU_ESP32S2) || (CFG_TUSB_MCU == OPT_MCU_ESP32S3)) && TUSB_OPT_DEVICE_ENABLED)
@ -41,6 +40,7 @@
#include "soc/gpio_sig_map.h"
#include "soc/usb_periph.h"
#include "common/tusb_fifo.h"
#include "device/dcd.h"
// Since TinyUSB doesn't use SOF for now, and this interrupt too often (1ms interval)

View File

@ -25,11 +25,11 @@
*/
#include "tusb_option.h"
#include "common/tusb_fifo.h"
#if CFG_TUSB_MCU == OPT_MCU_SAMG
#include "sam.h"
#include "common/tusb_fifo.h"
#include "device/dcd.h"
// TODO should support (SAM3S || SAM4S || SAM4E || SAMG55)

View File

@ -34,10 +34,10 @@
*/
#include "tusb_option.h"
#include "common/tusb_fifo.h"
#if TUSB_OPT_DEVICE_ENABLED && (CFG_TUSB_MCU == OPT_MCU_NUC120)
#include "common/tusb_fifo.h"
#include "device/dcd.h"
#include "NUC100Series.h"

View File

@ -34,10 +34,10 @@
*/
#include "tusb_option.h"
#include "common/tusb_fifo.h"
#if TUSB_OPT_DEVICE_ENABLED && ( (CFG_TUSB_MCU == OPT_MCU_NUC121) || (CFG_TUSB_MCU == OPT_MCU_NUC126) )
#include "common/tusb_fifo.h"
#include "device/dcd.h"
#include "NuMicro.h"

View File

@ -34,10 +34,10 @@
*/
#include "tusb_option.h"
#include "common/tusb_fifo.h"
#if TUSB_OPT_DEVICE_ENABLED && (CFG_TUSB_MCU == OPT_MCU_NUC505)
#include "common/tusb_fifo.h"
#include "device/dcd.h"
#include "NUC505Series.h"

View File

@ -102,7 +102,6 @@
*/
#include "tusb_option.h"
#include "common/tusb_fifo.h"
#if defined(STM32F102x6) || defined(STM32F102xB) || \
defined(STM32F103x6) || defined(STM32F103xB) || \
@ -121,6 +120,7 @@
// Some definitions are copied to our private include file.
#undef USE_HAL_DRIVER
#include "common/tusb_fifo.h"
#include "device/dcd.h"
#include "portable/st/stm32_fsdev/dcd_stm32_fsdev_pvt_st.h"

View File

@ -28,7 +28,6 @@
*/
#include "tusb_option.h"
#include "common/tusb_fifo.h"
// Since TinyUSB doesn't use SOF for now, and this interrupt too often (1ms interval)
// We disable SOF for now until needed later on
@ -98,6 +97,7 @@
#endif
#include "common/tusb_fifo.h"
#include "device/dcd.h"
//--------------------------------------------------------------------+

View File

@ -25,10 +25,10 @@
*/
#include "tusb_option.h"
#include "common/tusb_fifo.h"
#if CFG_TUSB_MCU == OPT_MCU_NONE
#include "common/tusb_fifo.h"
#include "device/dcd.h"
//--------------------------------------------------------------------+

View File

@ -26,11 +26,11 @@
*/
#include "tusb_option.h"
#include "common/tusb_fifo.h"
#if TUSB_OPT_DEVICE_ENABLED && ( CFG_TUSB_MCU == OPT_MCU_MSP430x5xx )
#include "msp430.h"
#include "common/tusb_fifo.h"
#include "device/dcd.h"
/*------------------------------------------------------------------*/