diff options
Diffstat (limited to 'zephyr/emul/emul_bma255.c')
-rw-r--r-- | zephyr/emul/emul_bma255.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/zephyr/emul/emul_bma255.c b/zephyr/emul/emul_bma255.c index 2afe1f722e..a57c8fbdbb 100644 --- a/zephyr/emul/emul_bma255.c +++ b/zephyr/emul/emul_bma255.c @@ -3,21 +3,22 @@ * found in the LICENSE file. */ -#include "driver/accel_bma2x2.h" -#include "emul/emul_bma255.h" -#include "emul/emul_common_i2c.h" -#include "emul/emul_stub_device.h" +#define DT_DRV_COMPAT zephyr_bma255 + +#define LOG_LEVEL CONFIG_I2C_LOG_LEVEL +#include <zephyr/logging/log.h> +LOG_MODULE_REGISTER(emul_bma255); #include <zephyr/device.h> #include <zephyr/drivers/emul.h> #include <zephyr/drivers/i2c.h> #include <zephyr/drivers/i2c_emul.h> -#include <zephyr/logging/log.h> -#define DT_DRV_COMPAT zephyr_bma255_emul +#include "emul/emul_common_i2c.h" +#include "emul/emul_bma255.h" -#define LOG_LEVEL CONFIG_I2C_LOG_LEVEL -LOG_MODULE_REGISTER(emul_bma255); +#include "driver/accel_bma2x2.h" +#include "emul/emul_stub_device.h" /** Run-time data used by the emulator */ struct bma_emul_data { |