Skip to content

Commit

Permalink
feat: bsp: fit into the new thread context
Browse files Browse the repository at this point in the history
  • Loading branch information
polarvid authored and mysterywolf committed Oct 19, 2024
1 parent 645b3c6 commit 81181e1
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 7 deletions.
3 changes: 1 addition & 2 deletions bsp/nuvoton/libraries/m2354/rtt_port/drv_usbhost.c
Original file line number Diff line number Diff line change
Expand Up @@ -802,8 +802,7 @@ static rt_err_t usbhost_pm_suspend(const struct rt_device *device, rt_uint8_t mo
{
case PM_SLEEP_MODE_LIGHT:
case PM_SLEEP_MODE_DEEP:

pNuUSBHDev->polling_thread->stat = RT_THREAD_READY;
RT_SCHED_CTX(pNuUSBHDev->polling_thread).stat = RT_THREAD_READY;
result = rt_thread_suspend(pNuUSBHDev->polling_thread);
RT_ASSERT(result == RT_EOK);

Expand Down
2 changes: 1 addition & 1 deletion bsp/nuvoton/libraries/m460/rtt_port/drv_usbhost.c
Original file line number Diff line number Diff line change
Expand Up @@ -819,7 +819,7 @@ static int usbhost_pm_suspend(const struct rt_device *device, rt_uint8_t mode)
case PM_SLEEP_MODE_LIGHT:
case PM_SLEEP_MODE_DEEP:

pNuUSBHDev->polling_thread->stat = RT_THREAD_READY;
RT_SCHED_CTX(pNuUSBHDev->polling_thread).stat = RT_THREAD_READY;
result = rt_thread_suspend(pNuUSBHDev->polling_thread);
RT_ASSERT(result == RT_EOK);

Expand Down
2 changes: 1 addition & 1 deletion bsp/nuvoton/libraries/m480/rtt_port/drv_usbhost.c
Original file line number Diff line number Diff line change
Expand Up @@ -805,7 +805,7 @@ static rt_err_t usbhost_pm_suspend(const struct rt_device *device, rt_uint8_t mo
case PM_SLEEP_MODE_LIGHT:
case PM_SLEEP_MODE_DEEP:

pNuUSBHDev->polling_thread->stat = RT_THREAD_READY;
RT_SCHED_CTX(pNuUSBHDev->polling_thread).stat = RT_THREAD_READY;
result = rt_thread_suspend(pNuUSBHDev->polling_thread);
RT_ASSERT(result == RT_EOK);

Expand Down
2 changes: 1 addition & 1 deletion bsp/nuvoton/libraries/ma35/rtt_port/drv_usbhost.c
Original file line number Diff line number Diff line change
Expand Up @@ -845,7 +845,7 @@ static int usbhost_pm_suspend(const struct rt_device *device, rt_uint8_t mode)
case PM_SLEEP_MODE_LIGHT:
case PM_SLEEP_MODE_DEEP:

pNuUSBHDev->polling_thread->stat = RT_THREAD_READY;
RT_SCHED_CTX(pNuUSBHDev->polling_thread).stat = RT_THREAD_READY;
result = rt_thread_suspend(pNuUSBHDev->polling_thread);
RT_ASSERT(result == RT_EOK);

Expand Down
2 changes: 1 addition & 1 deletion bsp/nuvoton/libraries/n9h30/rtt_port/drv_usbhost.c
Original file line number Diff line number Diff line change
Expand Up @@ -902,7 +902,7 @@ static int usbhost_pm_suspend(const struct rt_device *device, rt_uint8_t mode)
case PM_SLEEP_MODE_LIGHT:
case PM_SLEEP_MODE_DEEP:

pNuUSBHDev->polling_thread->stat = RT_THREAD_READY;
RT_SCHED_CTX(pNuUSBHDev->polling_thread).stat = RT_THREAD_READY;
result = rt_thread_suspend(pNuUSBHDev->polling_thread);
RT_ASSERT(result == RT_EOK);

Expand Down
2 changes: 1 addition & 1 deletion bsp/nuvoton/libraries/nuc980/rtt_port/drv_usbhost.c
Original file line number Diff line number Diff line change
Expand Up @@ -902,7 +902,7 @@ static int usbhost_pm_suspend(const struct rt_device *device, rt_uint8_t mode)
case PM_SLEEP_MODE_LIGHT:
case PM_SLEEP_MODE_DEEP:

pNuUSBHDev->polling_thread->stat = RT_THREAD_READY;
RT_SCHED_CTX(pNuUSBHDev->polling_thread).stat = RT_THREAD_READY;
result = rt_thread_suspend(pNuUSBHDev->polling_thread);
RT_ASSERT(result == RT_EOK);

Expand Down

0 comments on commit 81181e1

Please sign in to comment.