Skip to content

Commit a9c65f0

Browse files
MaureenHelmkartben
authored andcommitted
boards: shields: pmod_acl: Fix default accelerometer odr
Fixes the pmod_acl shield board to specify the default accelerometer output data rate with a preprocessor macro that corresponds to an encoded register field value, rather than an integer value in Hertz. Signed-off-by: Maureen Helm <[email protected]>
1 parent 34c8167 commit a9c65f0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

boards/shields/pmod_acl/pmod_acl.overlay

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
* SPDX-License-Identifier: Apache-2.0
55
*/
66

7+
#include <zephyr/dt-bindings/sensor/adxl345.h>
8+
79
&pmod_spi {
810
status = "okay";
911

@@ -12,7 +14,7 @@
1214
reg = <0x0>;
1315
spi-max-frequency = <DT_FREQ_M(1)>;
1416
status = "okay";
15-
odr = <25>;
17+
odr = <ADXL345_DT_ODR_25>;
1618
fifo-watermark = <31>;
1719
};
1820
};

0 commit comments

Comments
 (0)