/* lis2de12_enable_xl_int - XL enable selected int pin to generate interrupt  */
static int lis2de12_enable_xl_int(const struct device *dev, int enable)
/* lis2de12_enable_xl_int - XL enable selected int pin to generate interrupt  */
static int lis2de12_enable_xl_int(const struct device *dev, int enable)
{
	const struct lis2de12_config *cfg = dev->config;
	stmdev_ctx_t *ctx = (stmdev_ctx_t *)&cfg->ctx;
	lis2de12_ctrl_reg3_t val = {0};
	int ret;
	if (enable) {
		int16_t xl_data[3];
		lis2de12_acceleration_raw_get(ctx, xl_data);
	}
	ret = lis2de12_pin_int1_config_get(ctx, &val);
	if (ret < 0) {
		LOG_ERR("pint_int1_route_get error");
		return ret;
	}
	val.i1_zyxda = 1;
	return lis2de12_pin_int1_config_set(ctx, &val);
}