可用的文件,全部

This commit is contained in:
2026-03-21 01:49:41 +08:00
commit da4f00f652
56 changed files with 9299 additions and 0 deletions

32
Core/Bsp/bsp_bmp280.h Normal file
View File

@@ -0,0 +1,32 @@
/**
* @file bsp_bmp280.h
* @brief BMP280 sensor driver (BSP layer)
* @details I2C1 interface, wrapper for LibDriver BMP280
*/
#ifndef __BSP_BMP280_H
#define __BSP_BMP280_H
#ifdef __cplusplus
extern "C" {
#endif
/* Includes ------------------------------------------------------------------*/
#include "driver_bmp280.h"
/* Exported types ------------------------------------------------------------*/
typedef struct {
float temperature; /* Temperature in Celsius */
float pressure; /* Pressure in Pa */
uint8_t is_ready; /* Sensor ready flag */
} bsp_bmp280_data_t;
/* Exported functions prototypes --------------------------------------------*/
uint8_t BSP_BMP280_Init(void);
uint8_t BSP_BMP280_Read(bsp_bmp280_data_t *data);
#ifdef __cplusplus
}
#endif
#endif /* __BSP_BMP280_H */