Page 1 of 1

right way to initialize an event_source_t variable in a struct?

Posted: Wed Aug 02, 2017 10:03 pm
by rxduty
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

Re: right way to initialize an event_source_t variable in a struct?

Posted: Thu Aug 03, 2017 7:14 am
by Giovanni

Re: right way to initialize an event_source_t variable in a struct?

Posted: Thu Aug 03, 2017 11:59 am
by rxduty
Sorry, I missed it when I was checking the manual. Thank you very much.

-rxduty