diff options
| author | sakumisu <[email protected]> | 2025-01-20 18:20:07 +0800 |
|---|---|---|
| committer | sakumisu <[email protected]> | 2025-01-20 18:20:21 +0800 |
| commit | 646e84bedc49e0b2f308606854697bf4a1d70e46 (patch) | |
| tree | 6ebd01b451440909285db56f4c028fa1a9ca10f6 /osal | |
| parent | 322595b910bbed5522e4f80fc3506c94a7e50156 (diff) | |
update(platform/nuttx): add more macros check for net and msc
Signed-off-by: sakumisu <[email protected]>
Diffstat (limited to 'osal')
| -rw-r--r-- | osal/usb_osal_nuttx.c | 6 |
1 files changed, 1 insertions, 5 deletions
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 <nuttx/sched.h> #include <nuttx/signal.h> -#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; |
