This is an automated email from the ASF dual-hosted git repository.

acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new b399c50  Add BMP180 and INA219 headers. Fix rp2040_ina219.h last 
comment format
b399c50 is described below

commit b399c509c8aa60f4954a6009f1dfc877d7394346
Author: Pedro Bertoleti <[email protected]>
AuthorDate: Thu Aug 5 12:47:43 2021 -0300

    Add BMP180 and INA219 headers. Fix rp2040_ina219.h last comment format
---
 boards/arm/rp2040/common/include/rp2040_ina219.h        |  2 +-
 boards/arm/rp2040/raspberrypi-pico/src/rp2040_bringup.c | 10 ++++++++++
 2 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/boards/arm/rp2040/common/include/rp2040_ina219.h 
b/boards/arm/rp2040/common/include/rp2040_ina219.h
index 9e08753..23fa262 100644
--- a/boards/arm/rp2040/common/include/rp2040_ina219.h
+++ b/boards/arm/rp2040/common/include/rp2040_ina219.h
@@ -75,4 +75,4 @@ int board_ina219_initialize(int busno);
 }
 #endif
 
-#endif // __BOARDS_ARM_RP2040_COMMON_INCLUDE_RP2040_INA219_H
+#endif /* __BOARDS_ARM_RP2040_COMMON_INCLUDE_RP2040_INA219_H  */
diff --git a/boards/arm/rp2040/raspberrypi-pico/src/rp2040_bringup.c 
b/boards/arm/rp2040/raspberrypi-pico/src/rp2040_bringup.c
index eab72fc..750a93b 100644
--- a/boards/arm/rp2040/raspberrypi-pico/src/rp2040_bringup.c
+++ b/boards/arm/rp2040/raspberrypi-pico/src/rp2040_bringup.c
@@ -49,6 +49,16 @@
 #include <nuttx/video/fb.h>
 #endif
 
+#ifdef CONFIG_SENSORS_INA219
+#include <nuttx/sensors/ina219.h>
+#include "rp2040_ina219.h"
+#endif
+
+#ifdef CONFIG_SENSORS_BMP180
+#include <nuttx/sensors/bmp180.h>
+#include "rp2040_bmp180.h"
+#endif
+
 /****************************************************************************
  * Public Functions
  ****************************************************************************/

Reply via email to