sensors: Move SCU-specific ak09912 sensor into spresense board

Move SCU-specific ak09912 sensor into spresense board layer.
Rename a function name to register SCU sensor driver
from ak09912_register to ak09912_scu_register.
This commit is contained in:
SPRESENSE
2023-08-24 16:02:05 +09:00
committed by Xiang Xiao
parent 606b6d9310
commit 795dcee521
4 changed files with 51 additions and 37 deletions
+1 -24
View File
@@ -83,25 +83,6 @@ struct ak09912_sensadj_s
uint8_t z;
};
#ifdef CONFIG_SENSORS_AK09912_SCU
/****************************************************************************
* Name: ak09912_init
*
* Description:
* Initialize AK09912 magnetometer device
*
* Input Parameters:
* i2c - An instance of the I2C interface to use to communicate with
* AK09912
*
* Returned Value:
* Zero (OK) on success; a negated errno value on failure.
*
****************************************************************************/
int ak09912_init(FAR struct i2c_master_s *i2c, int port);
#endif
/****************************************************************************
* Name: ak09912_register
*
@@ -117,12 +98,8 @@ int ak09912_init(FAR struct i2c_master_s *i2c, int port);
* Zero (OK) on success; a negated errno value on failure.
*
****************************************************************************/
#ifdef CONFIG_SENSORS_AK09912_SCU
int ak09912_register(FAR const char *devpath, int minor,
FAR struct i2c_master_s *i2c, int port);
#else
int ak09912_register(FAR const char *devpath, FAR struct i2c_master_s *i2c);
#endif
#undef EXTERN
#ifdef __cplusplus