Lines Matching refs:name

286 #define osThreadDef(name, priority, instances, stacksz)  \  argument
287 extern const osThreadDef_t os_thread_def_##name
289 #define osThreadDef(name, priority, instances, stacksz) \ argument
290 static K_THREAD_STACK_ARRAY_DEFINE(stacks_##name, instances, CONFIG_CMSIS_THREAD_MAX_STACK_SIZE); \
291 static struct k_thread cm_thread_##name[instances]; \
292 static struct k_poll_signal wait_signal_##name; \
293 static struct k_poll_event wait_events_##name; \
294 SYS_BITARRAY_DEFINE_STATIC(bitarray_##name, instances); \
295 static osThreadDef_t os_thread_def_##name = \
296 { (name), (priority), (instances), (stacksz), (void *)(stacks_##name), \
297 (cm_thread_##name), (&wait_signal_##name), \
298 (&wait_events_##name), 0, (void *)(&bitarray_##name)}
305 #define osThread(name) \ argument
306 &os_thread_def_##name
370 #define osTimerDef(name, function) \ argument
371 extern const osTimerDef_t os_timer_def_##name
373 #define osTimerDef(name, function) \ argument
374 const osTimerDef_t os_timer_def_##name = \
382 #define osTimer(name) \ argument
383 &os_timer_def_##name
444 #define osMutexDef(name) \ argument
445 extern const osMutexDef_t os_mutex_def_##name
447 #define osMutexDef(name) \ argument
448 const osMutexDef_t os_mutex_def_##name = { 0 }
455 #define osMutex(name) \ argument
456 &os_mutex_def_##name
493 #define osSemaphoreDef(name) \ argument
494 extern const osSemaphoreDef_t os_semaphore_def_##name
496 #define osSemaphoreDef(name) \ argument
497 const osSemaphoreDef_t os_semaphore_def_##name = { 0 }
504 #define osSemaphore(name) \ argument
505 &os_semaphore_def_##name
547 #define osPoolDef(name, no, type) \ argument
548 extern const osPoolDef_t os_pool_def_##name
550 #define osPoolDef(name, no, type) \ argument
551 K_MEM_SLAB_DEFINE(os_mem_##name, sizeof(type), no, 4); \
552 const osPoolDef_t os_pool_def_##name = \
553 { (no), sizeof(type), &os_mem_##name }
560 #define osPool(name) \ argument
561 &os_pool_def_##name
602 #define osMessageQDef(name, queue_sz, type) \ argument
603 extern const osMessageQDef_t os_messageQ_def_##name
605 #define osMessageQDef(name, queue_sz, type) \ argument
606 struct k_msgq msgq_##name; \
607 static char __aligned(4) buf_##name[queue_sz * sizeof(type)]; \
608 const osMessageQDef_t os_messageQ_def_##name = \
609 { (queue_sz), sizeof (type), (buf_##name), (&msgq_##name) }
616 #define osMessageQ(name) \ argument
617 &os_messageQ_def_##name
655 #define osMailQDef(name, queue_sz, type) \ argument
656 extern const osMailQDef_t os_mailQ_def_##name
658 #define osMailQDef(name, queue_sz, type) \ argument
659 struct k_mbox mbox_##name; \
660 K_MEM_SLAB_DEFINE(mailq_slab_##name, sizeof(type), queue_sz, 4); \
661 const osMailQDef_t os_mailQ_def_##name = \
662 { (queue_sz), sizeof (type), (&mailq_slab_##name), (&mbox_##name) }
669 #define osMailQ(name) \ argument
670 &os_mailQ_def_##name