git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@14031 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
parent
21eb903b0b
commit
1d3aae3b93
|
@ -102,7 +102,7 @@ typedef void (*evhandler_t)(eventid_t id);
|
||||||
* source that is part of a bigger structure.
|
* source that is part of a bigger structure.
|
||||||
* @param name the name of the event source variable
|
* @param name the name of the event source variable
|
||||||
*/
|
*/
|
||||||
#define _EVENTSOURCE_DATA(name) {(event_listener_t *)(&name)}
|
#define __EVENTSOURCE_DATA(name) {(event_listener_t *)(&name)}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Static event source initializer.
|
* @brief Static event source initializer.
|
||||||
|
@ -111,7 +111,7 @@ typedef void (*evhandler_t)(eventid_t id);
|
||||||
*
|
*
|
||||||
* @param name the name of the event source variable
|
* @param name the name of the event source variable
|
||||||
*/
|
*/
|
||||||
#define EVENTSOURCE_DECL(name) event_source_t name = _EVENTSOURCE_DATA(name)
|
#define EVENTSOURCE_DECL(name) event_source_t name = __EVENTSOURCE_DATA(name)
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
/* External declarations. */
|
/* External declarations. */
|
||||||
|
|
Loading…
Reference in New Issue