You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2022/08/01 17:29:06 UTC
[incubator-nuttx] 02/22: driver/sensor: enable usensor and rpmsg_sensor
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
commit 8de6c29aa4be51f4902c0c2eea64b9534f0f2c4e
Author: Jiuzhu Dong <do...@xiaomi.com>
AuthorDate: Thu Apr 14 12:21:45 2022 +0800
driver/sensor: enable usensor and rpmsg_sensor
Signed-off-by: Jiuzhu Dong <do...@xiaomi.com>
---
drivers/drivers_initialize.c | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/drivers/drivers_initialize.c b/drivers/drivers_initialize.c
index bb62e23f88..7ba9363479 100644
--- a/drivers/drivers_initialize.c
+++ b/drivers/drivers_initialize.c
@@ -31,9 +31,10 @@
#include <nuttx/net/telnet.h>
#include <nuttx/note/note_driver.h>
#include <nuttx/power/pm.h>
+#include <nuttx/sensors/sensor.h>
+#include <nuttx/serial/pty.h>
#include <nuttx/syslog/syslog.h>
#include <nuttx/syslog/syslog_console.h>
-#include <nuttx/serial/pty.h>
/****************************************************************************
* Public Functions
@@ -143,4 +144,12 @@ void drivers_initialize(void)
telnet_initialize();
#endif
+
+#ifdef CONFIG_USENSOR
+ usensor_initialize();
+#endif
+
+#ifdef CONFIG_SENSORS_RPMSG
+ sensor_rpmsg_initialize();
+#endif
}