right way to initialize an event_source_t variable in a struct?
Posted: Wed Aug 02, 2017 10:03 pm
Hi, I'm new to ChibiOS and still trying to figure out how to use it.
I'm currently updating an out-dated library for nrf24l01. It uses chEvtInit() to initialize an event_source_t defined inside a struct. But this macro doesn't exist in the current version of ChibiOS any more and I only see the macro EVENTSOURCE_DECL() to declare a static event_source_t variable. I was wondering how I should initialize this member variable properly and I didn't find any helpful information so far.
Thanks in advance.
-rxduty
I'm currently updating an out-dated library for nrf24l01. It uses chEvtInit() to initialize an event_source_t defined inside a struct. But this macro doesn't exist in the current version of ChibiOS any more and I only see the macro EVENTSOURCE_DECL() to declare a static event_source_t variable. I was wondering how I should initialize this member variable properly and I didn't find any helpful information so far.
Thanks in advance.
-rxduty