<commit_before>/*
 * Copyright (C) 2018 <NAME>
 *
 * This file is subject to the terms and conditions of the GNU Lesser
 * General Public License v2.1. See the file LICENSE in the top level
 * directory for more details.
 */

/**
 * @ingroup     drivers_hmc5883l
 * @brief       Device driver for the Honeywell HMC5883L 3-axis digital compass
 * @author      <NAME> <<EMAIL>>
 * @file
 * @{
 */

#include <assert.h>
#include <string.h>
#include <stdlib.h>

#include "hmc5883l_regs.h"
#include "hmc5883l.h"

#include "log.h"
#include "xtimer.h"

#define ENABLE_DEBUG 0
#include "debug.h"

#define DEBUG_DEV(f, d, ...) \
        DEBUG("[hmc5883l] %s i2c dev=%d addr=%02x: " f "\n", \
              __func__, d->dev, HMC5883L_I2C_ADDRESS, ## __VA_ARGS__);

#define ERROR_DEV(f, d, ...) \
        LOG_ERROR("[hmc5883l] %s i2c dev=%d addr=%02x: " f "\n", \
                  __func__, d->dev, HMC5883L_I2C_ADDRESS, ## __VA_ARGS__);

#define EXEC_RET(f, r) \
    if ((r = f) != HMC5883L_OK) { \
        DEBUG("[hmc5883l] %s: error code %d\n", __func__, res); \
        return res; \
    }

#define EXEC_RET_CODE(f, r, c) \<commit_msg>drivers/hmc5883l: remove useless xtimer include<commit_after>/*
 * Copyright (C) 2018 <NAME>
 *
 * This file is subject to the terms and conditions of the GNU Lesser
 * General Public License v2.1. See the file LICENSE in the top level
 * directory for more details.
 */

/**
 * @ingroup     drivers_hmc5883l
 * @brief       Device driver for the Honeywell HMC5883L 3-axis digital compass
 * @author      <NAME> <<EMAIL>>
 * @file
 * @{
 */

#include <assert.h>
#include <string.h>
#include <stdlib.h>

#include "hmc5883l_regs.h"
#include "hmc5883l.h"

#include "log.h"

#define ENABLE_DEBUG 0
#include "debug.h"

#define DEBUG_DEV(f, d, ...) \
        DEBUG("[hmc5883l] %s i2c dev=%d addr=%02x: " f "\n", \
              __func__, d->dev, HMC5883L_I2C_ADDRESS, ## __VA_ARGS__);

#define ERROR_DEV(f, d, ...) \
        LOG_ERROR("[hmc5883l] %s i2c dev=%d addr=%02x: " f "\n", \
                  __func__, d->dev, HMC5883L_I2C_ADDRESS, ## __VA_ARGS__);

#define EXEC_RET(f, r) \
    if ((r = f) != HMC5883L_OK) { \
        DEBUG("[hmc5883l] %s: error code %d\n", __func__, res); \
        return res; \
    }

#define EXEC_RET_CODE(f, r, c) \
{'fraction_non_alphanumeric': 0.15770925110132158, 'fraction_numerical': 0.05110132158590308, 'mean_word_length': 2.8556876061120544, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2822263', 'n_tokens_mistral': 949, 'n_tokens_neox': 892, 'n_words': 236}