summaryrefslogtreecommitdiff
path: root/src/host
diff options
context:
space:
mode:
authorpete-pjb <[email protected]>2022-12-02 10:00:19 +0000
committerpete-pjb <[email protected]>2022-12-02 10:00:19 +0000
commit3816869fce15509fd43eb5a6d14de76478f86cf1 (patch)
treeaa5ad1d9a69501d293f0bbb2adefbd603674433f /src/host
parentc31b95c91652f58b8b991a5481c9f7c37be7f09a (diff)
Some reverts and changes after discussion.
Diffstat (limited to 'src/host')
-rw-r--r--src/host/usbh.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/host/usbh.c b/src/host/usbh.c
index f28554b81..d97b160c9 100644
--- a/src/host/usbh.c
+++ b/src/host/usbh.c
@@ -246,8 +246,8 @@ static uint8_t _usbh_ctrl_buf[CFG_TUH_ENUMERATION_BUFSIZE];
// Control transfer: since most controller does not support multiple control transfer
// on multiple devices concurrently. And control transfer is not used much except enumeration
-// We will only execute control transfer one at a time.CFG_TUSB_MEM_SECTION TU_ATTR_ALIGNED(4096)
-CFG_TUSB_MEM_SECTION struct
+// We will only execute control transfer one at a time.
+struct
{
tusb_control_request_t request TU_ATTR_ALIGNED(4);
uint8_t* buffer;
@@ -509,7 +509,7 @@ void tuh_task_ext(uint32_t timeout_ms, bool in_isr)
default: break;
}
-#if CFG_TUSB_OS != OPT_OS_NONE && CFG_TUSB_OS != OPT_OS_PICO && CFG_TUSB_OS != OPT_OS_FREERTOS
+#if CFG_TUSB_OS != OPT_OS_NONE && CFG_TUSB_OS != OPT_OS_PICO
// return if there is no more events, for application to run other background
if (osal_queue_empty(_usbh_q)) return;
#endif