Forum Discussion
Altera_Forum
Honored Contributor
15 years agoMessage Q with Data Structure help
Good day. I am a little rusty on C so would like some basic help. I would like to define a structure to hold Character LCD data such as the text string, the position, and the style. I would like to u...
Altera_Forum
Honored Contributor
15 years agoOS_EVENT * some_queue;
void* some_queue_tbl[16]; some_queue = OSQCreate(&some_queue_tbl[0], 16); task1 { OSQPost(some_queue, (void *)pointer_to_your_struct); } task2 { your_struct_type * pointer_to_my_struct_type; pointer_to_my_struct_type = (your_struct_type *)OSQPend(some_que, 0, &err); }