Zephyr. Issues using kernel Events.

Hi,

I have been mingling with kernel funtionnalities of Zephyr. I am trying to improve my application using an event based approch and threading. 

I am trying to define an event using the following : 

K_EVENT_DEFINE(my_event);

Which returns this error when I build the solution : 

c:\Users\tessierc\Desktop\Rotary\Legrand_Rotary\src\Rotary_Dimmer_IHM.h:253:1: warning: data definition has no type or storage class
  253 | K_EVENTS_DEFINE(my_event);
      | ^~~~~~~~~~~~~~~
c:\Users\tessierc\Desktop\Rotary\Legrand_Rotary\src\Rotary_Dimmer_IHM.h:253:1: error: type defaults to 'int' in declaration of 'K_EVENTS_DEFINE' [-Werror=implicit-int]

It seems to me that this is the only kernel functionnality that give me problems as Semaphores, Threads, and Timers works great.

Moreover, I tried to change my .conf by adding : 

CONFIG_EVENTS=y

This doesn't solve anything and even though this config is defined in the Zephyr documentation, nrf Connect seems to ignore this one.

Best Regards, 

Charles

Parents Reply Children
No Data
Related