right way to initialize an event_source_t variable in a struct?

ChibiOS public support forum for all topics not covered by a specific support forum.

Moderators: RoccoMarco, lbednarz, tfAteba

Post Reply
rxduty
Posts: 2
Joined: Wed Aug 02, 2017 9:52 pm

right way to initialize an event_source_t variable in a struct?

Post 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
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

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

Post by Giovanni »

rxduty
Posts: 2
Joined: Wed Aug 02, 2017 9:52 pm

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

Post by rxduty »

Sorry, I missed it when I was checking the manual. Thank you very much.

-rxduty
Post Reply