diff --git a/boards/arm/kinetis/freedom-k64f/src/k64_i2c.c b/boards/arm/kinetis/freedom-k64f/src/k64_i2c.c index 0fcf802f4e..560c330c94 100644 --- a/boards/arm/kinetis/freedom-k64f/src/k64_i2c.c +++ b/boards/arm/kinetis/freedom-k64f/src/k64_i2c.c @@ -48,6 +48,10 @@ #if defined(CONFIG_KINETIS_I2C0) +# if defined(CONFIG_SENSORS_FXOS8700CQ) +# include "nuttx/sensors/fxos8700cq.h" +# endif + /**************************************************************************** * Public Data ****************************************************************************/ @@ -84,6 +88,9 @@ int k64_i2cdev_initialize(void) { #ifdef CONFIG_I2C_DRIVER ret = i2c_register(g_i2c0_dev, 0); +#if defined(CONFIG_SENSORS_FXOS8700CQ) + fxos8700cq_register("/dev/accel0", g_i2c0_dev); +#endif #endif } #endif