Some renaming for consistency with USBv2.

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15076 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
Giovanni Di Sirio 2021-11-14 10:30:54 +00:00
parent 8ba8bd3f72
commit 0f8a1b4bc3
3 changed files with 5 additions and 5 deletions

View File

@ -288,8 +288,8 @@ static void usb_packet_write_from_buffer(usbep_t ep,
* @notapi
*/
static void usb_serve_endpoints(USBDriver *usbp, uint32_t istr) {
uint32_t ep = istr & ISTR_EP_ID_MASK;
size_t n;
uint32_t ep = istr & ISTR_EP_ID_MASK;
uint32_t epr = STM32_USB->EPR[ep];
const USBEndpointConfig *epcp = usbp->epc[ep];
@ -681,7 +681,7 @@ void usb_lld_disable_endpoints(USBDriver *usbp) {
usb_pm_reset(usbp);
/* Disabling all endpoints.*/
for (i = 1; i <= USB_ENDOPOINTS_NUMBER; i++) {
for (i = 1; i <= USB_ENDPOINTS_NUMBER; i++) {
EPR_TOGGLE(i, 0);
EPR_SET(i, 0);
}

View File

@ -36,7 +36,7 @@
/**
* @brief Maximum endpoint address.
*/
#define USB_MAX_ENDPOINTS USB_ENDOPOINTS_NUMBER
#define USB_MAX_ENDPOINTS USB_ENDPOINTS_NUMBER
/**
* @brief Status stage handling method.

View File

@ -31,7 +31,7 @@
* @brief Number of the available endpoints.
* @details This value does not include the endpoint 0 which is always present.
*/
#define USB_ENDOPOINTS_NUMBER 7
#define USB_ENDPOINTS_NUMBER 7
/**
* @brief Width of USB packet memory accesses.
@ -49,7 +49,7 @@ typedef struct {
/**
* @brief Endpoint registers.
*/
volatile uint32_t EPR[USB_ENDOPOINTS_NUMBER + 1];
volatile uint32_t EPR[USB_ENDPOINTS_NUMBER + 1];
/*
* @brief Reserved space.
*/