summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReinhard Panhuber <[email protected]>2021-02-17 22:29:51 +0100
committerReinhard Panhuber <[email protected]>2021-02-17 22:29:51 +0100
commit94bf4f54dae23f0b0fcd660f0afae374f8e141d5 (patch)
tree11fb52bd86f91b6e477c4d6d240e531903f7d022
parent53a796a92ea853ea5af16431ba2a6bed8a3c7b5a (diff)
Fix missing FIFO definitions
-rw-r--r--src/portable/nuvoton/nuc121/dcd_nuc121.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/portable/nuvoton/nuc121/dcd_nuc121.c b/src/portable/nuvoton/nuc121/dcd_nuc121.c
index a689470d6..8aa97ad10 100644
--- a/src/portable/nuvoton/nuc121/dcd_nuc121.c
+++ b/src/portable/nuvoton/nuc121/dcd_nuc121.c
@@ -34,6 +34,7 @@
*/
#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) )
@@ -78,6 +79,7 @@ static bool active_ep0_xfer;
static struct xfer_ctl_t
{
uint8_t *data_ptr; /* data_ptr tracks where to next copy data to (for OUT) or from (for IN) */
+ tu_fifo_t * ff;
union {
uint16_t in_remaining_bytes; /* for IN endpoints, we track how many bytes are left to transfer */
uint16_t out_bytes_so_far; /* but for OUT endpoints, we track how many bytes we've transferred so far */