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 | |
| parent | 5a38fd508ba43d2e406c00cd658858bb80909c30 (diff) | |
update: set enum thread to the lower prio than app prio
Signed-off-by: sakumisu <[email protected]>
Diffstat (limited to 'platform')
| -rw-r--r-- | platform/idf/usbh_fatfs.c | 2 | ||||
| -rw-r--r-- | platform/idf/usbh_net.c | 10 | ||||
| -rw-r--r-- | platform/lwip/usbh_lwip.c | 10 | ||||
| -rw-r--r-- | platform/nuttx/usbh_net.c | 2 | ||||
| -rw-r--r-- | platform/rtthread/rt_usbh_lwip.c | 10 | ||||
| -rw-r--r-- | platform/rtthread/rt_usbh_msc.c | 2 |
6 files changed, 18 insertions, 18 deletions
diff --git a/platform/idf/usbh_fatfs.c b/platform/idf/usbh_fatfs.c index ca2713ae..9af4ea06 100644 --- a/platform/idf/usbh_fatfs.c +++ b/platform/idf/usbh_fatfs.c @@ -297,7 +297,7 @@ static void usbh_msc_thread(CONFIG_USB_OSAL_THREAD_SET_ARGV) void usbh_msc_run(struct usbh_msc *msc_class) { - 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) diff --git a/platform/idf/usbh_net.c b/platform/idf/usbh_net.c index b4febf76..cad0d902 100644 --- a/platform/idf/usbh_net.c +++ b/platform/idf/usbh_net.c @@ -139,7 +139,7 @@ void usbh_cdc_ecm_run(struct usbh_cdc_ecm *cdc_ecm_class) esp_netif_action_start(esp_netif, NULL, 0, NULL); esp_netif_action_connected(esp_netif, NULL, 0, NULL); - 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) @@ -217,7 +217,7 @@ void usbh_rndis_run(struct usbh_rndis *rndis_class) esp_netif_action_start(esp_netif, NULL, 0, NULL); esp_netif_action_connected(esp_netif, NULL, 0, NULL); - 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); } @@ -279,7 +279,7 @@ void usbh_cdc_ncm_run(struct usbh_cdc_ncm *cdc_ncm_class) esp_netif_action_start(esp_netif, NULL, 0, NULL); esp_netif_action_connected(esp_netif, NULL, 0, NULL); - 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) @@ -336,7 +336,7 @@ void usbh_asix_run(struct usbh_asix *asix_class) esp_netif_action_start(esp_netif, NULL, 0, NULL); esp_netif_action_connected(esp_netif, NULL, 0, NULL); - 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) @@ -393,7 +393,7 @@ void usbh_rtl8152_run(struct usbh_rtl8152 *rtl8152_class) esp_netif_action_start(esp_netif, NULL, 0, NULL); esp_netif_action_connected(esp_netif, NULL, 0, NULL); - 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/lwip/usbh_lwip.c b/platform/lwip/usbh_lwip.c index 950bd626..2c7c0bac 100644 --- a/platform/lwip/usbh_lwip.c +++ b/platform/lwip/usbh_lwip.c @@ -173,7 +173,7 @@ void usbh_cdc_ecm_run(struct usbh_cdc_ecm *cdc_ecm_class) } } - 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); #if LWIP_DHCP dhcp_start(netif); usb_osal_timer_start(dhcp_handle); @@ -277,7 +277,7 @@ void usbh_rndis_run(struct usbh_rndis *rndis_class) } } - 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); @@ -365,7 +365,7 @@ void usbh_cdc_ncm_run(struct usbh_cdc_ncm *cdc_ncm_class) } } - 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); #if LWIP_DHCP dhcp_start(netif); usb_osal_timer_start(dhcp_handle); @@ -448,7 +448,7 @@ void usbh_asix_run(struct usbh_asix *asix_class) } } - 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); #if LWIP_DHCP dhcp_start(netif); usb_osal_timer_start(dhcp_handle); @@ -531,7 +531,7 @@ void usbh_rtl8152_run(struct usbh_rtl8152 *rtl8152_class) } } - 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); #if LWIP_DHCP dhcp_start(netif); usb_osal_timer_start(dhcp_handle); diff --git a/platform/nuttx/usbh_net.c b/platform/nuttx/usbh_net.c index c7af90f9..38db5f3f 100644 --- a/platform/nuttx/usbh_net.c +++ b/platform/nuttx/usbh_net.c @@ -118,7 +118,7 @@ static int rndis_ifup(struct net_driver_s *dev) { printf("rndis if up\r\n"); g_rndis_dev.linkup = 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); return OK; } 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) |
