diff options
| author | sakumisu <[email protected]> | 2026-11-24 22:20:54 +0800 |
|---|---|---|
| committer | sakumisu <[email protected]> | 2026-11-25 21:13:07 +0800 |
| commit | 87276ca5efd6538c87cc70d01a484379e4ea6ad2 (patch) | |
| tree | 1200c3885e93b46d2de46c0b293e952dba987edb /platform/rtthread | |
| parent | 5a38fd508ba43d2e406c00cd658858bb80909c30 (diff) | |
update: set enum thread to the lower prio than app prio
Signed-off-by: sakumisu <[email protected]>
Diffstat (limited to 'platform/rtthread')
| -rw-r--r-- | platform/rtthread/rt_usbh_lwip.c | 10 | ||||
| -rw-r--r-- | platform/rtthread/rt_usbh_msc.c | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/platform/rtthread/rt_usbh_lwip.c b/platform/rtthread/rt_usbh_lwip.c index 292e5e3c..9090d38c 100644 --- a/platform/rtthread/rt_usbh_lwip.c +++ b/platform/rtthread/rt_usbh_lwip.c @@ -158,7 +158,7 @@ void usbh_cdc_ecm_run(struct usbh_cdc_ecm *cdc_ecm_class) eth_device_init(&g_cdc_ecm_dev, "u0"); eth_device_linkchange(&g_cdc_ecm_dev, RT_TRUE); - usb_osal_thread_create("usbh_cdc_ecm_rx", 2048, CONFIG_USBHOST_PSC_PRIO + 1, usbh_cdc_ecm_rx_thread, NULL); + usb_osal_thread_create("usbh_cdc_ecm_rx", 2048, CONFIG_USBHOST_PSC_PRIO - 1, usbh_cdc_ecm_rx_thread, NULL); } void usbh_cdc_ecm_stop(struct usbh_cdc_ecm *cdc_ecm_class) @@ -247,7 +247,7 @@ void usbh_rndis_run(struct usbh_rndis *rndis_class) eth_device_init(&g_rndis_dev, "u2"); eth_device_linkchange(&g_rndis_dev, RT_TRUE); - usb_osal_thread_create("usbh_rndis_rx", 2048, CONFIG_USBHOST_PSC_PRIO + 1, usbh_rndis_rx_thread, NULL); + usb_osal_thread_create("usbh_rndis_rx", 2048, CONFIG_USBHOST_PSC_PRIO - 1, usbh_rndis_rx_thread, NULL); //timer_init(rndis_class); } @@ -319,7 +319,7 @@ void usbh_cdc_ncm_run(struct usbh_cdc_ncm *cdc_ncm_class) eth_device_init(&g_cdc_ncm_dev, "u1"); eth_device_linkchange(&g_cdc_ncm_dev, RT_TRUE); - usb_osal_thread_create("usbh_cdc_ncm_rx", 2048, CONFIG_USBHOST_PSC_PRIO + 1, usbh_cdc_ncm_rx_thread, NULL); + usb_osal_thread_create("usbh_cdc_ncm_rx", 2048, CONFIG_USBHOST_PSC_PRIO - 1, usbh_cdc_ncm_rx_thread, NULL); } void usbh_cdc_ncm_stop(struct usbh_cdc_ncm *cdc_ncm_class) @@ -388,7 +388,7 @@ void usbh_asix_run(struct usbh_asix *asix_class) eth_device_init(&g_asix_dev, "u3"); eth_device_linkchange(&g_asix_dev, RT_TRUE); - usb_osal_thread_create("usbh_asix_rx", 2048, CONFIG_USBHOST_PSC_PRIO + 1, usbh_asix_rx_thread, NULL); + usb_osal_thread_create("usbh_asix_rx", 2048, CONFIG_USBHOST_PSC_PRIO - 1, usbh_asix_rx_thread, NULL); } void usbh_asix_stop(struct usbh_asix *asix_class) @@ -457,7 +457,7 @@ void usbh_rtl8152_run(struct usbh_rtl8152 *rtl8152_class) eth_device_init(&g_rtl8152_dev, "u4"); eth_device_linkchange(&g_rtl8152_dev, RT_TRUE); - usb_osal_thread_create("usbh_rtl8152_rx", 2048, CONFIG_USBHOST_PSC_PRIO + 1, usbh_rtl8152_rx_thread, NULL); + usb_osal_thread_create("usbh_rtl8152_rx", 2048, CONFIG_USBHOST_PSC_PRIO - 1, usbh_rtl8152_rx_thread, NULL); } void usbh_rtl8152_stop(struct usbh_rtl8152 *rtl8152_class) diff --git a/platform/rtthread/rt_usbh_msc.c b/platform/rtthread/rt_usbh_msc.c index aa2e4a8d..b271731b 100644 --- a/platform/rtthread/rt_usbh_msc.c +++ b/platform/rtthread/rt_usbh_msc.c @@ -178,7 +178,7 @@ void usbh_msc_run(struct usbh_msc *msc_class) rt_device_register(dev, name, RT_DEVICE_FLAG_RDWR | RT_DEVICE_FLAG_REMOVABLE | RT_DEVICE_FLAG_STANDALONE); - usb_osal_thread_create("usbh_msc", 2048, CONFIG_USBHOST_PSC_PRIO + 1, usbh_msc_thread, msc_class); + usb_osal_thread_create("usbh_msc", 2048, CONFIG_USBHOST_PSC_PRIO - 1, usbh_msc_thread, msc_class); } void usbh_msc_stop(struct usbh_msc *msc_class) |
