Updated ADXL355 demos in testex demos to be close to the pattern used in testhal demos. Minor changes to field names in ADXL355.

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15436 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
Rocco Marco Guglielmi 2022-02-07 17:37:18 +00:00
parent 610ddc1dfb
commit db3586adf7
5 changed files with 25 additions and 25 deletions

View File

@ -510,7 +510,7 @@ void adxl355Start(ADXL355Driver *devp, const ADXL355Config *config) {
/* Filter register configuration block.*/
{
reg_val = devp->config->accoutputdatarate;
reg_val = devp->config->accodr;
#if ADXL355_USE_ADVANCED || defined(__DOXYGEN__)
reg_val |= devp->config->acchighpass;
#endif

View File

@ -43,7 +43,7 @@
/**
* @brief ADXL355 driver version string.
*/
#define EX_ADXL355_VERSION "1.0.0"
#define EX_ADXL355_VERSION "1.0.1"
/**
* @brief ADXL355 driver version major number.
@ -58,7 +58,7 @@
/**
* @brief ADXL355 driver version patch number.
*/
#define EX_ADXL355_PATCH 0
#define EX_ADXL355_PATCH 1
/** @} */
/**
@ -423,7 +423,7 @@ typedef struct {
/**
* @brief ADXL355 output data rate selection.
*/
adxl355_acc_odr_t accoutputdatarate;
adxl355_acc_odr_t accodr;
#if ADXL355_USE_ADVANCED || defined(__DOXYGEN__)
/**
* @brief ADXL355 HP filter bandwidth.

View File

@ -52,14 +52,14 @@ static const SPIConfig spicfg = {
};
static ADXL355Config adxl355cfg = {
&SPID1,
&spicfg,
NULL,
NULL,
ADXL355_ACC_FS_2G,
ADXL355_ACC_ODR_125HZ,
.spip = &SPID1,
.spicfg = &spicfg,
.accsensitivity = NULL,
.accbias = NULL,
.accfullscale = ADXL355_ACC_FS_2G,
.accodr = ADXL355_ACC_ODR_125HZ,
#if ADXL355_USE_ADVANCED
ADXL355_ACC_HP_LEV_3
.acchighpass = ADXL355_ACC_HP_LEV_3
#endif
};

View File

@ -50,14 +50,14 @@ static const SPIConfig spicfg = {
};
static ADXL355Config adxl355cfg = {
&SPID1,
&spicfg,
NULL,
NULL,
ADXL355_ACC_FS_2G,
ADXL355_ACC_ODR_125HZ,
.spip = &SPID1,
.spicfg = &spicfg,
.accsensitivity = NULL,
.accbias = NULL,
.accfullscale = ADXL355_ACC_FS_2G,
.accodr = ADXL355_ACC_ODR_125HZ,
#if ADXL355_USE_ADVANCED
ADXL355_ACC_HP_LEV_3
.acchighpass = ADXL355_ACC_HP_LEV_3
#endif
};

View File

@ -51,14 +51,14 @@ static const SPIConfig spicfg = {
};
static ADXL355Config adxl355cfg = {
&SPID2,
&spicfg,
NULL,
NULL,
ADXL355_ACC_FS_2G,
ADXL355_ACC_ODR_125HZ,
.spip = &SPID2,
.spicfg = &spicfg,
.accsensitivity = NULL,
.accbias = NULL,
.accfullscale = ADXL355_ACC_FS_2G,
.accodr = ADXL355_ACC_ODR_125HZ,
#if ADXL355_USE_ADVANCED
ADXL355_ACC_HP_LEV_3
.acchighpass = ADXL355_ACC_HP_LEV_3
#endif
};