mirror of
https://github.com/hathach/tinyusb.git
synced 2025-01-17 05:32:55 +08:00
UAC : Enable fifo based transfer on stm32_fsdev
This commit is contained in:
parent
fe8c170c98
commit
e4f07206f8
@ -76,26 +76,19 @@
|
|||||||
// Linear buffer in case target MCU is not capable of handling a ring buffer FIFO e.g. no hardware buffer
|
// Linear buffer in case target MCU is not capable of handling a ring buffer FIFO e.g. no hardware buffer
|
||||||
// is available or driver is would need to be changed dramatically
|
// is available or driver is would need to be changed dramatically
|
||||||
|
|
||||||
// Only STM32 synopsys and dcd_transdimension use non-linear buffer for now
|
// Only STM32 and dcd_transdimension use non-linear buffer for now
|
||||||
// Synopsys detection copied from dcd_synopsys.c (refactor later on)
|
#if CFG_TUSB_MCU == OPT_MCU_STM32F0 || \
|
||||||
#if defined (STM32F105x8) || defined (STM32F105xB) || defined (STM32F105xC) || \
|
CFG_TUSB_MCU == OPT_MCU_STM32F1 || \
|
||||||
defined (STM32F107xB) || defined (STM32F107xC)
|
|
||||||
#define STM32F1_SYNOPSYS
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined (STM32L475xx) || defined (STM32L476xx) || \
|
|
||||||
defined (STM32L485xx) || defined (STM32L486xx) || defined (STM32L496xx) || \
|
|
||||||
defined (STM32L4R5xx) || defined (STM32L4R7xx) || defined (STM32L4R9xx) || \
|
|
||||||
defined (STM32L4S5xx) || defined (STM32L4S7xx) || defined (STM32L4S9xx)
|
|
||||||
#define STM32L4_SYNOPSYS
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if (CFG_TUSB_MCU == OPT_MCU_STM32F1 && defined(STM32F1_SYNOPSYS)) || \
|
|
||||||
CFG_TUSB_MCU == OPT_MCU_STM32F2 || \
|
CFG_TUSB_MCU == OPT_MCU_STM32F2 || \
|
||||||
|
CFG_TUSB_MCU == OPT_MCU_STM32F3 || \
|
||||||
CFG_TUSB_MCU == OPT_MCU_STM32F4 || \
|
CFG_TUSB_MCU == OPT_MCU_STM32F4 || \
|
||||||
CFG_TUSB_MCU == OPT_MCU_STM32F7 || \
|
CFG_TUSB_MCU == OPT_MCU_STM32F7 || \
|
||||||
CFG_TUSB_MCU == OPT_MCU_STM32H7 || \
|
CFG_TUSB_MCU == OPT_MCU_STM32H7 || \
|
||||||
(CFG_TUSB_MCU == OPT_MCU_STM32L4 && defined(STM32L4_SYNOPSYS)) || \
|
CFG_TUSB_MCU == OPT_MCU_STM32L0 || \
|
||||||
|
CFG_TUSB_MCU == OPT_MCU_STM32L1 || \
|
||||||
|
CFG_TUSB_MCU == OPT_MCU_STM32L4 || \
|
||||||
|
CFG_TUSB_MCU == OPT_MCU_STM32G4 || \
|
||||||
|
CFG_TUSB_MCU == OPT_MCU_STM32WB || \
|
||||||
CFG_TUSB_MCU == OPT_MCU_RX63X || \
|
CFG_TUSB_MCU == OPT_MCU_RX63X || \
|
||||||
CFG_TUSB_MCU == OPT_MCU_RX65X || \
|
CFG_TUSB_MCU == OPT_MCU_RX65X || \
|
||||||
CFG_TUSB_MCU == OPT_MCU_RX72N || \
|
CFG_TUSB_MCU == OPT_MCU_RX72N || \
|
||||||
|
@ -169,10 +169,10 @@ void dcd_edpt_clear_stall (uint8_t rhport, uint8_t ep_addr);
|
|||||||
|
|
||||||
// Allocate packet buffer used by ISO endpoints
|
// Allocate packet buffer used by ISO endpoints
|
||||||
// Some MCU need manual packet buffer allocation, we allocation largest size to avoid clustering
|
// Some MCU need manual packet buffer allocation, we allocation largest size to avoid clustering
|
||||||
bool dcd_edpt_iso_alloc(uint8_t rhport, uint8_t ep_addr, uint16_t largest_packet_size);
|
TU_ATTR_WEAK bool dcd_edpt_iso_alloc(uint8_t rhport, uint8_t ep_addr, uint16_t largest_packet_size);
|
||||||
|
|
||||||
// Configure and enable an ISO endpoint according to descriptor
|
// Configure and enable an ISO endpoint according to descriptor
|
||||||
bool dcd_edpt_iso_activate(uint8_t rhport, tusb_desc_endpoint_t const * p_endpoint_desc);
|
TU_ATTR_WEAK bool dcd_edpt_iso_activate(uint8_t rhport, tusb_desc_endpoint_t const * p_endpoint_desc);
|
||||||
//--------------------------------------------------------------------+
|
//--------------------------------------------------------------------+
|
||||||
// Event API (implemented by stack)
|
// Event API (implemented by stack)
|
||||||
//--------------------------------------------------------------------+
|
//--------------------------------------------------------------------+
|
||||||
|
Loading…
x
Reference in New Issue
Block a user