update(platform/nuttx): add more macros check for net and msc

Signed-off-by: sakumisu <1203593632@qq.com>
This commit is contained in:
sakumisu
2025-01-20 18:20:07 +08:00
parent 322595b910
commit 646e84bedc
3 changed files with 43 additions and 22 deletions

View File

@@ -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;