freedom-k64f: Register on board sensor driver

Change-Id: I4f3ff16fae994250f62537cd0c3021465db1189c
Forwarded: https://github.com/apache/incubator-nuttx/pulls/rzr
Bug: https://github.com/apache/incubator-nuttx/pull/1999
Last-update: 2020-10-16
Signed-off-by: Philippe Coval <rzr@users.sf.net>
This commit is contained in:
Philippe Coval 2020-10-13 12:49:34 +02:00 committed by Xiang Xiao
parent 9e470ad73e
commit dfb626a215

View File

@ -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