mirror of
https://github.com/apache/nuttx.git
synced 2026-10-19 04:43:03 +00:00
sensors: Move SCU-specific bmp280 sensor into spresense board
Move SCU-specific bmp280 sensor into spresense board layer.
This commit is contained in:
parent
ffcea1da4f
commit
7d0d6234eb
3 changed files with 65 additions and 26 deletions
|
|
@ -135,25 +135,6 @@ struct bmp280_meas_s
|
|||
uint8_t xlsb; /* meas value XLSB */
|
||||
};
|
||||
|
||||
#ifdef CONFIG_SENSORS_BMP280_SCU
|
||||
/****************************************************************************
|
||||
* Name: bmp280_init
|
||||
*
|
||||
* Description:
|
||||
* Initialize BMP280 pressure device
|
||||
*
|
||||
* Input Parameters:
|
||||
* i2c - An instance of the I2C interface to use to communicate with
|
||||
* BMP280
|
||||
*
|
||||
* Returned Value:
|
||||
* Zero (OK) on success; a negated errno value on failure.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
int bmp280_init(FAR struct i2c_master_s *i2c, int port);
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* Name: bmp280_register
|
||||
*
|
||||
|
|
@ -170,14 +151,7 @@ int bmp280_init(FAR struct i2c_master_s *i2c, int port);
|
|||
*
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef CONFIG_SENSORS_BMP280_SCU
|
||||
int bmp280press_register(FAR const char *devpath, int minor,
|
||||
FAR struct i2c_master_s *i2c, int port);
|
||||
int bmp280temp_register(FAR const char *devpath, int minor,
|
||||
FAR struct i2c_master_s *i2c, int port);
|
||||
#else
|
||||
int bmp280_register(int devno, FAR struct i2c_master_s *i2c);
|
||||
#endif
|
||||
|
||||
#undef EXTERN
|
||||
#ifdef __cplusplus
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue