#include
#include
#include "sensors/sensor_bs_bmp280.h"
#include
#define DBG_TAG "main"
#define DBG_LEV DEG_LOG
#include
int main(void)
{
}
int bmp280_port(void)
{
struct rt_sensor_config cfg;
cfg.intf.dev_name = BMP280_I2CBUS_NAME;
cfg.intf.arg = (void *)BMP280_ADDR_DEFAULT;
rt_hw_bmp280_init("bmp280", &cfg);
return 0;
}
INIT_APP_EXPORT(bmp280_port);
我加了一段rt-thread社区上bmp280的软件包里面的程序,
main函数中,调用了其初始化函数,报错信息和目录结构如下图所示
报错信息:
目录结构: