fix ci
This commit is contained in:
parent
a226dbaa4d
commit
37cac414f8
|
@ -30,13 +30,24 @@
|
||||||
#include "common/tusb_common.h"
|
#include "common/tusb_common.h"
|
||||||
#include "osal/osal.h"
|
#include "osal/osal.h"
|
||||||
#include "common/tusb_fifo.h"
|
#include "common/tusb_fifo.h"
|
||||||
|
|
||||||
#include "dcd_attr.h"
|
#include "dcd_attr.h"
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
//--------------------------------------------------------------------+
|
||||||
|
// Configuration
|
||||||
|
//--------------------------------------------------------------------+
|
||||||
|
|
||||||
|
#ifndef CFG_TUD_ENDPPOINT_MAX
|
||||||
|
#define CFG_TUD_ENDPPOINT_MAX DCD_ATTR_ENDPOINT_MAX
|
||||||
|
#endif
|
||||||
|
|
||||||
|
//--------------------------------------------------------------------+
|
||||||
|
// MACRO CONSTANT TYPEDEF PROTYPES
|
||||||
|
//--------------------------------------------------------------------+
|
||||||
|
|
||||||
typedef enum
|
typedef enum
|
||||||
{
|
{
|
||||||
DCD_EVENT_INVALID = 0,
|
DCD_EVENT_INVALID = 0,
|
||||||
|
|
|
@ -33,6 +33,7 @@
|
||||||
// - ENDPOINT_MAX: max (logical) number of endpoint
|
// - ENDPOINT_MAX: max (logical) number of endpoint
|
||||||
// - ENDPOINT_EXCLUSIVE_NUMBER: endpoint number with different direction IN and OUT aren't allowed,
|
// - ENDPOINT_EXCLUSIVE_NUMBER: endpoint number with different direction IN and OUT aren't allowed,
|
||||||
// e.g EP1 OUT & EP1 IN cannot exist together
|
// e.g EP1 OUT & EP1 IN cannot exist together
|
||||||
|
// - PORT_HIGHSPEED: mask to indicate which port support highspeed mode, bit0 for port0 and so on.
|
||||||
|
|
||||||
//------------- NXP -------------//
|
//------------- NXP -------------//
|
||||||
#if TU_CHECK_MCU(LPC11UXX) || TU_CHECK_MCU(LPC13XX) || TU_CHECK_MCU(LPC15XX)
|
#if TU_CHECK_MCU(LPC11UXX) || TU_CHECK_MCU(LPC13XX) || TU_CHECK_MCU(LPC15XX)
|
||||||
|
@ -48,7 +49,11 @@
|
||||||
#elif TU_CHECK_MCU(LPC51UXX)
|
#elif TU_CHECK_MCU(LPC51UXX)
|
||||||
#define DCD_ATTR_ENDPOINT_MAX 5
|
#define DCD_ATTR_ENDPOINT_MAX 5
|
||||||
|
|
||||||
#elif TU_CHECK_MCU(LPC54XXX) || TU_CHECK_MCU(LPC55XX)
|
#elif TU_CHECK_MCU(LPC54XXX)
|
||||||
|
// TODO USB0 has 5, USB1 has 6
|
||||||
|
#define DCD_ATTR_ENDPOINT_MAX 6
|
||||||
|
|
||||||
|
#elif TU_CHECK_MCU(LPC55XX)
|
||||||
// TODO USB0 has 5, USB1 has 6
|
// TODO USB0 has 5, USB1 has 6
|
||||||
#define DCD_ATTR_ENDPOINT_MAX 6
|
#define DCD_ATTR_ENDPOINT_MAX 6
|
||||||
|
|
||||||
|
@ -143,4 +148,9 @@
|
||||||
#define DCD_ATTR_ENDPOINT_MAX 8
|
#define DCD_ATTR_ENDPOINT_MAX 8
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Default to fullspeed if not defined
|
||||||
|
//#ifndef PORT_HIGHSPEED
|
||||||
|
// #define DCD_ATTR_PORT_HIGHSPEED 0x00
|
||||||
|
//#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -37,18 +37,10 @@
|
||||||
// USBD Configuration
|
// USBD Configuration
|
||||||
//--------------------------------------------------------------------+
|
//--------------------------------------------------------------------+
|
||||||
|
|
||||||
#ifndef CFG_TUD_ENDPOINT0_SIZE
|
|
||||||
#define CFG_TUD_ENDPOINT0_SIZE 64
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CFG_TUD_TASK_QUEUE_SZ
|
#ifndef CFG_TUD_TASK_QUEUE_SZ
|
||||||
#define CFG_TUD_TASK_QUEUE_SZ 16
|
#define CFG_TUD_TASK_QUEUE_SZ 16
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef CFG_TUD_ENDPPOINT_MAX
|
|
||||||
#define CFG_TUD_ENDPPOINT_MAX DCD_ATTR_ENDPOINT_MAX
|
|
||||||
#endif
|
|
||||||
|
|
||||||
//--------------------------------------------------------------------+
|
//--------------------------------------------------------------------+
|
||||||
// Device Data
|
// Device Data
|
||||||
//--------------------------------------------------------------------+
|
//--------------------------------------------------------------------+
|
||||||
|
|
|
@ -27,12 +27,12 @@
|
||||||
#ifndef _TUSB_USBD_H_
|
#ifndef _TUSB_USBD_H_
|
||||||
#define _TUSB_USBD_H_
|
#define _TUSB_USBD_H_
|
||||||
|
|
||||||
|
#include "common/tusb_common.h"
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "common/tusb_common.h"
|
|
||||||
|
|
||||||
//--------------------------------------------------------------------+
|
//--------------------------------------------------------------------+
|
||||||
// Application API
|
// Application API
|
||||||
//--------------------------------------------------------------------+
|
//--------------------------------------------------------------------+
|
||||||
|
|
|
@ -210,6 +210,10 @@
|
||||||
// DEVICE OPTIONS
|
// DEVICE OPTIONS
|
||||||
//--------------------------------------------------------------------
|
//--------------------------------------------------------------------
|
||||||
|
|
||||||
|
#ifndef CFG_TUD_ENDPOINT0_SIZE
|
||||||
|
#define CFG_TUD_ENDPOINT0_SIZE 64
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef CFG_TUD_CDC
|
#ifndef CFG_TUD_CDC
|
||||||
#define CFG_TUD_CDC 0
|
#define CFG_TUD_CDC 0
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue