#include <rtthread.h>
#define THREAD_PRIORITY 9
#define THREAD_TIMESLICE 5
#define EVENT_FLAG3 (1 << 3)
#define EVENT_FLAG5 (1 << 5)
ALIGN(RT_ALIGN_SIZE)
static char thread1_stack[1024];
static void thread1_recv_event(void *param)
{
{
}
rt_kprintf(
"thread1: delay 1s to prepare the second event\n");
{
}
}
ALIGN(RT_ALIGN_SIZE)
static char thread2_stack[1024];
static void thread2_send_event(void *param)
{
}
int event_sample(void)
{
{
return -1;
}
"thread1",
thread1_recv_event,
&thread1_stack[0],
sizeof(thread1_stack),
THREAD_PRIORITY - 1, THREAD_TIMESLICE);
"thread2",
thread2_send_event,
&thread2_stack[0],
sizeof(thread2_stack),
THREAD_PRIORITY, THREAD_TIMESLICE);
return 0;
}