summaryrefslogtreecommitdiff
path: root/src/host
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2023-07-31 17:12:28 +0700
committerGitHub <[email protected]>2023-07-31 17:12:28 +0700
commitce54984556c79fbe534c042c1bc844cfee0d888e (patch)
tree3a7e14c1b21ee1e609dcb2b7480b1f0ff24aa6c8 /src/host
parentdb59494b1b24f7dad26c5c66c85a195a2cf09466 (diff)
parent3fdd2a40b2103089e47609a05577fc84b786ec4f (diff)
Merge pull request #2093 from abakosh/no_osal_delay
osal_none: make it possible to override the task delay function
Diffstat (limited to 'src/host')
-rw-r--r--src/host/usbh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/host/usbh.c b/src/host/usbh.c
index 15c48be47..c8eb91be3 100644
--- a/src/host/usbh.c
+++ b/src/host/usbh.c
@@ -258,7 +258,7 @@ static bool usbh_control_xfer_cb (uint8_t daddr, uint8_t ep_addr, xfer_result_t
#if CFG_TUSB_OS == OPT_OS_NONE
// TODO rework time-related function later
-void osal_task_delay(uint32_t msec)
+TU_ATTR_WEAK void osal_task_delay(uint32_t msec)
{
const uint32_t start = hcd_frame_number(_usbh_controller);
while ( ( hcd_frame_number(_usbh_controller) - start ) < msec ) {}