/* Set up the event system, linking the measurement and comparison timers so that events generated from the reference timer are linked to the measurement timer.  */
static void setup_events(struct events_resource *event)
/* Set up the event system, linking the measurement and comparison timers so that events generated from the reference timer are linked to the measurement timer.  */
static void setup_events(struct events_resource *event)
{
	struct events_config config;
	events_get_config_defaults(&config);
	config.edge_detect    = EVENTS_EDGE_DETECT_RISING;
	config.path           = EVENTS_PATH_SYNCHRONOUS;
	config.generator      = CONF_EVENT_GENERATOR_ID;
	events_allocate(event, &config);
	events_attach_user(event, CONF_EVENT_USED_ID);
}