Hi,
We are using nrf52840 development board and segger embedded studio. I am using thread concept here to run another function in parallel to my main function. i want to get or post data to that thread function, for that i am using message queue. while initiating message queue i am getting error "expected declaration specifiers or '...' before '&' token' i didn't understand why. below is my block of code where the error was coming.
char __aligned(4) my_msgq_buffer[8];
struct k_msgq adoclamp_msgq;
k_msgq_init(&adoclamp_msgq, my_msgq_buffer, 8, 4);
Can any one please help me to solve this error.
thanks and regards,
samuel kapa.