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, utzig, tfAteba, barthess

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

right way to initialize an event_source_t variable in a struct?

Postby rxduty » 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

User avatar
Giovanni
Site Admin
Posts: 14444
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1074 times
Been thanked: 921 times
Contact:

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

Postby Giovanni » Thu Aug 03, 2017 7:14 am


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

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

Postby rxduty » Thu Aug 03, 2017 11:59 am

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

-rxduty


Return to “General Support”

Who is online

Users browsing this forum: Bing [Bot] and 20 guests