From fe40710b7e058c1c58bc0407a487533cfae9a0eb Mon Sep 17 00:00:00 2001 From: anschrammh Date: Tue, 29 Apr 2025 07:07:45 +0200 Subject: [PATCH] Added header comments in both files as well as clarified the temperature unit --- src/W800_SDK_v1.00.10/app/app_drivers/i2c/BMP280.c | 10 ++++++++++ src/W800_SDK_v1.00.10/app/app_drivers/i2c/BMP280.h | 12 +++++++++++- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/src/W800_SDK_v1.00.10/app/app_drivers/i2c/BMP280.c b/src/W800_SDK_v1.00.10/app/app_drivers/i2c/BMP280.c index 6780405..532272b 100644 --- a/src/W800_SDK_v1.00.10/app/app_drivers/i2c/BMP280.c +++ b/src/W800_SDK_v1.00.10/app/app_drivers/i2c/BMP280.c @@ -1,3 +1,13 @@ +/** + * @file BMP280.c + * @author Anatole SCHRAMM-HENRY + * @brief BMP280 pressure and temperature bosch sensor functions implementation source file. + * @version 0.1 + * @date 2025-04-29 + * + * @copyright MIT + */ + #include #include "i2c.h" #include "BMP280.h" diff --git a/src/W800_SDK_v1.00.10/app/app_drivers/i2c/BMP280.h b/src/W800_SDK_v1.00.10/app/app_drivers/i2c/BMP280.h index d5cba9e..10216c6 100644 --- a/src/W800_SDK_v1.00.10/app/app_drivers/i2c/BMP280.h +++ b/src/W800_SDK_v1.00.10/app/app_drivers/i2c/BMP280.h @@ -1,3 +1,13 @@ +/** + * @file BMP280.h + * @author Anatole SCHRAMM-HENRY + * @brief BMP280 pressure and temperature bosch sensor functions API header file. + * @version 0.1 + * @date 2025-04-29 + * + * @copyright MIT + */ + #ifndef BMP280_H #define BMP280_H @@ -92,7 +102,7 @@ float BMP280_get_temperature(void); /** * @brief Returns the previously sampled pressure in Pa. * - * @param temperature the address of a float which will contain the measured temperature. If not needed, can be NULL. + * @param temperature the address of a float which will contain the measured temperature in °C. If not needed, can be NULL. * @return float the value of the pressure in Pa */ float BMP280_get_pressure(float * const temperature);