/* Install a sensor event handler. 
The event handler can subsequently be enabled and disabled using the sensor_event_enable() and sensor_event_disable() routines. */
bool sensor_add_event(sensor_t *sensor, sensor_event_t sensor_event, sensor_event_callback handler, volatile void *arg, bool enable)
/* Install a sensor event handler. 
The event handler can subsequently be enabled and disabled using the sensor_event_enable() and sensor_event_disable() routines. */
bool sensor_add_event(sensor_t *sensor, sensor_event_t sensor_event, sensor_event_callback handler, volatile void *arg, bool enable)
{
	sensor_event_callback_t callback;
	callback.handler = (handler != NULL) ? handler : default_event_handler;
	callback.arg     = arg;
	return SENSOR_DRV_CALL(sensor, event, sensor_event, &callback, enable);
}