Fix Yellow & Red in 41caf678fe

Change-Id: If111595271289878097c2a8b30bec3f18390a49c
This commit is contained in:
Solomon Peachy 2026-05-04 14:04:26 -04:00
parent 41caf678fe
commit d92b42c70f
4 changed files with 3 additions and 7 deletions

View file

@ -24,6 +24,7 @@
#define __USB_DESIGNWARE_H__ #define __USB_DESIGNWARE_H__
#include <inttypes.h> #include <inttypes.h>
#include <stdbool.h>
#include "config.h" #include "config.h"
#include "cpu.h" #include "cpu.h"

View file

@ -295,8 +295,6 @@ void usb_drv_ep_init(const struct usb_drv_ep_alloc_ctx* ctx, int ep)
else else
RXCON(endp) = (epnum << 8) | RXEPEN | RXNAK | RXACKINTEN | RXCFINTE | RXERRINTEN; RXCON(endp) = (epnum << 8) | RXEPEN | RXNAK | RXACKINTEN | RXCFINTE | RXERRINTEN;
EN_INT |= 1 << (epnum + 7); EN_INT |= 1 << (epnum + 7);
return 0;
} }
void usb_drv_ep_deinit(const struct usb_drv_ep_alloc_ctx* ctx, int ep) void usb_drv_ep_deinit(const struct usb_drv_ep_alloc_ctx* ctx, int ep)
@ -307,7 +305,6 @@ void usb_drv_ep_deinit(const struct usb_drv_ep_alloc_ctx* ctx, int ep)
/* disable interrupt from this endpoint */ /* disable interrupt from this endpoint */
EN_INT &= ~(1 << (num + 7)); EN_INT &= ~(1 << (num + 7));
return 0;
} }
/* Set the address (usually it's in a register). /* Set the address (usually it's in a register).

View file

@ -1496,7 +1496,7 @@ void usb_drv_ep_init(const struct usb_drv_ep_alloc_ctx* ctx, int ep)
int num = EP_NUM(ep); int num = EP_NUM(ep);
int dir = EP_DIR(ep); int dir = EP_DIR(ep);
return tnetv_gadget_ep_enable(num, dir == DIR_IN); tnetv_gadget_ep_enable(num, dir == DIR_IN);
} }
void usb_drv_ep_deinit(const struct usb_drv_ep_alloc_ctx* ctx, int ep) void usb_drv_ep_deinit(const struct usb_drv_ep_alloc_ctx* ctx, int ep)
@ -1505,5 +1505,5 @@ void usb_drv_ep_deinit(const struct usb_drv_ep_alloc_ctx* ctx, int ep)
int num = EP_NUM(ep); int num = EP_NUM(ep);
int dir = EP_DIR(ep); int dir = EP_DIR(ep);
return tnetv_gadget_ep_disable(num, dir == DIR_IN); tnetv_gadget_ep_disable(num, dir == DIR_IN);
} }

View file

@ -1204,7 +1204,6 @@ void usb_drv_ep_init(const struct usb_drv_ep_alloc_ctx* ctx, int ep)
REG_USB_INTRINE |= USB_INTR_EP(num); REG_USB_INTRINE |= USB_INTR_EP(num);
else else
REG_USB_INTROUTE |= USB_INTR_EP(num); REG_USB_INTROUTE |= USB_INTR_EP(num);
return 0;
} }
void usb_drv_ep_deinit(const struct usb_drv_ep_alloc_ctx* ctx, int ep) void usb_drv_ep_deinit(const struct usb_drv_ep_alloc_ctx* ctx, int ep)
@ -1218,5 +1217,4 @@ void usb_drv_ep_deinit(const struct usb_drv_ep_alloc_ctx* ctx, int ep)
REG_USB_INTRINE &= ~USB_INTR_EP(num); REG_USB_INTRINE &= ~USB_INTR_EP(num);
else else
REG_USB_INTROUTE &= ~USB_INTR_EP(num); REG_USB_INTROUTE &= ~USB_INTR_EP(num);
return 0;
} }