Skip to content
Merged
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
6 changes: 4 additions & 2 deletions Components/USB/Source/usbd_cmsis_rtos2.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*------------------------------------------------------------------------------
* MDK Middleware - Component ::USB:Device
* Copyright (c) 2004-2024 Arm Limited (or its affiliates). All rights reserved.
* Copyright (c) 2004-2026 Arm Limited (or its affiliates). All rights reserved.
*------------------------------------------------------------------------------
* Name: usbd_cmsis_rtos2.c
* Purpose: USB Device (USBD) - RTOS abstraction implemented on CMSIS-RTOS2
Expand Down Expand Up @@ -824,7 +824,9 @@ static osRtxSemaphore_t usbd_hid_semaphore_cb_mem [USBD_HID_NUM]

// Functions definition

/// \brief Create a thread
/// \brief Create a USB-specific thread
/// \details This function creates a USB thread as requested by the system.
/// The thread can be either a USB Core thread or a class-specific thread for handling class-specific endpoint events.
/// \param[in] thread thread
/// \param[in] index parameter dependent on thread (device index or class instance or endpoint index)
/// \return
Expand Down
10 changes: 7 additions & 3 deletions Components/USB/Source/usbh_lib_core.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*------------------------------------------------------------------------------
* MDK Middleware - Component ::USB:Host
* Copyright (c) 2004-2024 Arm Limited (or its affiliates).
* Copyright (c) 2004-2026 Arm Limited (or its affiliates).
* All rights reserved.
*------------------------------------------------------------------------------
* Name: usbh_lib_core.c
Expand Down Expand Up @@ -1774,7 +1774,9 @@ usbStatus USBH_DeviceRequest_GetConfiguration (uint8_t device, uint8_t *ptr_conf
usbStatus status;
usbStatus mstatus;

EvrUSBH_Core_RequestGetConfiguration(device, *ptr_configuration);
if (ptr_configuration != NULL) {
EvrUSBH_Core_RequestGetConfiguration(device, *ptr_configuration);
}

ctrl = usbh_dev[device].ctrl;
status = CheckController (ctrl);
Expand Down Expand Up @@ -1850,7 +1852,9 @@ usbStatus USBH_DeviceRequest_GetInterface (uint8_t device, uint8_t index, uint8_
usbStatus status;
usbStatus mstatus;

EvrUSBH_Core_RequestGetInterface(device, index, *ptr_alternate);
if (ptr_alternate != NULL) {
EvrUSBH_Core_RequestGetInterface(device, index, *ptr_alternate);
}

ctrl = usbh_dev[device].ctrl;
status = CheckController (ctrl);
Expand Down
Loading