From bee60ef48f875593d60e76877a16369a26f907f0 Mon Sep 17 00:00:00 2001 From: Eric Molitor <534583+emolitor@users.noreply.github.com> Date: Sun, 22 Feb 2026 09:51:53 +0000 Subject: [PATCH] fix: Fix WB32 typos --- os/hal/ports/WB32/LLD/ADCv1/hal_adc_lld.h | 4 ++-- os/hal/ports/WB32/LLD/USBv1/hal_usb_lld.c | 2 +- os/hal/ports/WB32/LLD/USBv1/hal_usb_lld.h | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/os/hal/ports/WB32/LLD/ADCv1/hal_adc_lld.h b/os/hal/ports/WB32/LLD/ADCv1/hal_adc_lld.h index 99b0accb78..9d62383d00 100644 --- a/os/hal/ports/WB32/LLD/ADCv1/hal_adc_lld.h +++ b/os/hal/ports/WB32/LLD/ADCv1/hal_adc_lld.h @@ -110,7 +110,7 @@ /** @} */ /** - * @brief ADC usbed DMAC channel setting. + * @brief ADC used DMAC channel setting. */ #if !defined(WB32_ADC_ADC1_DMA_STREAM) || defined(__DOXYGEN__) #define WB32_ADC_ADC1_DMA_STREAM WB32_DMA_STREAM_ID(1, 0) @@ -118,7 +118,7 @@ /** @} */ /** - * @brief ADC usbed DMAC channel priority setting. + * @brief ADC used DMAC channel priority setting. */ #if !defined(WB32_ADC_ADC1_DMA_PRIORITY) || defined(__DOXYGEN__) #define WB32_ADC_ADC1_DMA_PRIORITY 2 diff --git a/os/hal/ports/WB32/LLD/USBv1/hal_usb_lld.c b/os/hal/ports/WB32/LLD/USBv1/hal_usb_lld.c index 6cfb9887bc..2f08a64d5d 100644 --- a/os/hal/ports/WB32/LLD/USBv1/hal_usb_lld.c +++ b/os/hal/ports/WB32/LLD/USBv1/hal_usb_lld.c @@ -734,7 +734,7 @@ void usb_lld_disable_endpoints(USBDriver *usbp) { WB32_USB->INTROUTE = 0x00; /* Disabling all endpoints.*/ - for (i = 1; i <= (USB_ENDOPOINTS_NUMBER & 0x0F); i++) { + for (i = 1; i <= (USB_ENDPOINTS_NUMBER & 0x0F); i++) { WB32_USB->INDEX = i; WB32_USB->INCSR2 = 0x00; WB32_USB->INCSR1 = USB_INCSR1_CLRDATATOG; diff --git a/os/hal/ports/WB32/LLD/USBv1/hal_usb_lld.h b/os/hal/ports/WB32/LLD/USBv1/hal_usb_lld.h index c8ff67469d..7d92ffd45f 100644 --- a/os/hal/ports/WB32/LLD/USBv1/hal_usb_lld.h +++ b/os/hal/ports/WB32/LLD/USBv1/hal_usb_lld.h @@ -35,8 +35,8 @@ * @brief Number of the available endpoints. * @details This value does not include the endpoint 0 which is always present. */ -#if !defined(USB_ENDOPOINTS_NUMBER) || defined(__DOXYGEN__) -#define USB_ENDOPOINTS_NUMBER 3 +#if !defined(USB_ENDPOINTS_NUMBER) || defined(__DOXYGEN__) +#define USB_ENDPOINTS_NUMBER 3 #endif /** @@ -48,7 +48,7 @@ /** * @brief Maximum endpoint address. */ -#define USB_MAX_ENDPOINTS USB_ENDOPOINTS_NUMBER +#define USB_MAX_ENDPOINTS USB_ENDPOINTS_NUMBER /** * @brief Status stage handling method.