From 646e84bedc49e0b2f308606854697bf4a1d70e46 Mon Sep 17 00:00:00 2001 From: sakumisu <1203593632@qq.com> Date: Mon, 20 Jan 2025 18:20:07 +0800 Subject: update(platform/nuttx): add more macros check for net and msc Signed-off-by: sakumisu <1203593632@qq.com> --- osal/usb_osal_nuttx.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'osal') diff --git a/osal/usb_osal_nuttx.c b/osal/usb_osal_nuttx.c index c62c7389..52b17130 100644 --- a/osal/usb_osal_nuttx.c +++ b/osal/usb_osal_nuttx.c @@ -31,10 +31,6 @@ #include #include -#if 1 -#error please modfiy all thread param (void *argument) with (int argc, char **argv), and argument = ((uintptr_t)strtoul(argv[1], NULL, 16)); -#endif - struct mq_adpt { struct file mq; /* Message queue handle */ uint32_t msgsize; /* Message size */ @@ -56,7 +52,7 @@ usb_osal_thread_t usb_osal_thread_create(const char *name, uint32_t stack_size, argv[0] = arg1; argv[1] = NULL; - pid = kthread_create(name, prio, stack_size, (void *)entry, + pid = kthread_create(name, CONFIG_SCHED_HPWORKPRIORITY - prio, stack_size, (void *)entry, argv); if (pid > 0) { return (usb_osal_thread_t)pid; -- cgit v1.3.1