From b399c509c8aa60f4954a6009f1dfc877d7394346 Mon Sep 17 00:00:00 2001 From: Pedro Bertoleti Date: Thu, 5 Aug 2021 12:47:43 -0300 Subject: [PATCH] Add BMP180 and INA219 headers. Fix rp2040_ina219.h last comment format --- boards/arm/rp2040/common/include/rp2040_ina219.h | 2 +- .../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 9e087533d9..23fa26208b 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 eab72fc130..750a93b1e5 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 #endif +#ifdef CONFIG_SENSORS_INA219 +#include +#include "rp2040_ina219.h" +#endif + +#ifdef CONFIG_SENSORS_BMP180 +#include +#include "rp2040_bmp180.h" +#endif + /**************************************************************************** * Public Functions ****************************************************************************/