File tree Expand file tree Collapse file tree 5 files changed +85
-0
lines changed
Expand file tree Collapse file tree 5 files changed +85
-0
lines changed Original file line number Diff line number Diff line change @@ -3338,6 +3338,7 @@ ADI Platforms:
33383338 - microbuilder
33393339 files :
33403340 - boards/adi/
3341+ - boards/shields/pmod_acl/
33413342 - drivers/*/*max*
33423343 - drivers/*/*max*/
33433344 - drivers/dac/dac_ltc*
Original file line number Diff line number Diff line change 1+ # Copyright (c) 2024 Analog Devices, Inc.
2+ # SPDX-License-Identifier: Apache-2.0
3+
4+ config SHIELD_PMOD_ACL
5+ def_bool $(shields_list_contains,pmod_acl)
Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright (c) 2024 Analog Devices, Inc.
3+ *
4+ * SPDX-License-Identifier: Apache-2.0
5+ */
6+
7+ / {
8+ aliases {
9+ accel0 = &adxl345_pmod_acl;
10+ };
11+ };
Original file line number Diff line number Diff line change 1+ .. pmod_acl:
2+
3+ Digilent Pmod ACL
4+ #################
5+
6+ Overview
7+ ********
8+
9+ The Digilent Pmod ACL is a 3-axis digital accelerometer module powered by the
10+ Analog Devices ADXL345.
11+
12+ Programming
13+ ***********
14+
15+ Set ``--shield pmod_acl `` when you invoke ``west build ``. For example:
16+
17+ .. zephyr-app-commands ::
18+ :zephyr-app: samples/sensor/sensor_shell
19+ :board: apard32690/max32690/m4
20+ :shield: pmod_acl
21+ :goals: build
22+
23+ Requirements
24+ ************
25+
26+ This shield can only be used with a board which provides a configuration
27+ for Pmod connectors and defines node aliases for SPI and GPIO interfaces
28+ (see :ref: `shields ` for more details).
29+
30+ References
31+ **********
32+
33+ - `Pmod ACL product page `_
34+ - `Pmod ACL reference manual `_
35+ - `Pmod ACL schematic `_
36+ - `ADXL345 product page `_
37+ - `ADXL345 data sheet `_
38+
39+ .. _Pmod ACL product page :
40+ https://digilent.com/shop/pmod-acl-3-axis-accelerometer/
41+
42+ .. _Pmod ACL reference manual :
43+ https://digilent.com/reference/pmod/pmodacl/reference-manual
44+
45+ .. _Pmod ACL schematic :
46+ https://digilent.com/reference/_media/reference/pmod/pmodacl/pmodacl_sch.pdf
47+
48+ .. _ADXL345 product page :
49+ https://www.analog.com/en/products/adxl345.html
50+
51+ .. _ADXL345 data sheet :
52+ https://www.analog.com/media/en/technical-documentation/data-sheets/adxl345.pdf
Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright (c) 2024 Analog Devices, Inc.
3+ *
4+ * SPDX-License-Identifier: Apache-2.0
5+ */
6+
7+ &pmod_spi {
8+ status = "okay";
9+
10+ adxl345_pmod_acl: adxl345@0 {
11+ compatible = "adi,adxl345";
12+ reg = <0x0>;
13+ spi-max-frequency = <DT_FREQ_M(1)>;
14+ status = "okay";
15+ };
16+ };
You can’t perform that action at this time.
0 commit comments