OS_EVENT *LetterQeue;
#define Letter_Size 32
void * LetterQeueTb[Letter_Size];
LetterQeue = OSQCreate(&LetterQeueTb[0], Letter_Size);
static void AppTaskOne (void *p_arg)
{
INT32U msg;
INT8U err;
(void)p_arg;
while (DEF_TRUE)
{
msg = (INT32U)OSQPend(LetterQeue, 0, &err);
switch (msg & 0xFF)
{
....
}
}
}
Fiq
OSQPost(LetterQeue, (void *)(byIndex));
switch (msg & 0xFF)
{
....
}
}
}
Fiq:
OSQPost(LetterQeue, (void *)(byIndex));
OS_EVENT *LetterQeue;
#define Letter_Size 32
void * LetterQeueTb[Letter_Size];
LetterQeue = OSQCreate(&LetterQeueTb[0], Letter_Size);
static void AppTaskOne (void *p_arg)
{
INT32U msg;
INT8U err;
(void)p_arg;
while (DEF_TRUE)
{
msg = (INT32U)OSQPend(LetterQeue, 0, &err);
switch (msg & 0xFF)
{
....
}
}
}
Fiq
OSQPost(LetterQeue, (void *)(byIndex));
switch (msg & 0xFF)
{
....
}
}
}
Fiq:
OSQPost(LetterQeue, (void *)(byIndex));
举报