Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions os/hal/ports/WB32/LLD/ADCv1/hal_adc_lld.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,15 +110,15 @@
/** @} */

/**
* @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)
#endif
/** @} */

/**
* @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
Expand Down
2 changes: 1 addition & 1 deletion os/hal/ports/WB32/LLD/USBv1/hal_usb_lld.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
6 changes: 3 additions & 3 deletions os/hal/ports/WB32/LLD/USBv1/hal_usb_lld.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

/**
Expand All @@ -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.
Expand Down