File tree Expand file tree Collapse file tree 3 files changed +64
-0
lines changed
tests/drivers/gpio/gpio_hogs Expand file tree Collapse file tree 3 files changed +64
-0
lines changed Original file line number Diff line number Diff line change
1
+ /* SPDX-License-Identifier: Apache-2.0 */
2
+
3
+ #include <zephyr/dt-bindings/gpio/gpio.h>
4
+
5
+ / {
6
+ zephyr,user {
7
+ output-high-gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
8
+ output-low-gpios = <&gpio0 4 GPIO_ACTIVE_HIGH>;
9
+ input-gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
10
+ };
11
+ };
12
+
13
+ &gpio0 {
14
+ hog1 {
15
+ gpio-hog;
16
+ gpios = <3 GPIO_ACTIVE_LOW>;
17
+ output-high;
18
+ };
19
+
20
+ hog2 {
21
+ gpio-hog;
22
+ gpios = <4 GPIO_ACTIVE_HIGH>;
23
+ output-low;
24
+ };
25
+
26
+ hog3 {
27
+ gpio-hog;
28
+ gpios = <1 GPIO_ACTIVE_LOW>;
29
+ input;
30
+ };
31
+ };
Original file line number Diff line number Diff line change
1
+ /* SPDX-License-Identifier: Apache-2.0 */
2
+
3
+ #include <zephyr/dt-bindings/gpio/gpio.h>
4
+
5
+ / {
6
+ zephyr,user {
7
+ output-high-gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
8
+ output-low-gpios = <&gpio0 4 GPIO_ACTIVE_HIGH>;
9
+ input-gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
10
+ };
11
+ };
12
+
13
+ &gpio0 {
14
+ hog1 {
15
+ gpio-hog;
16
+ gpios = <3 GPIO_ACTIVE_LOW>;
17
+ output-high;
18
+ };
19
+
20
+ hog2 {
21
+ gpio-hog;
22
+ gpios = <4 GPIO_ACTIVE_HIGH>;
23
+ output-low;
24
+ };
25
+
26
+ hog3 {
27
+ gpio-hog;
28
+ gpios = <1 GPIO_ACTIVE_LOW>;
29
+ input;
30
+ };
31
+ };
Original file line number Diff line number Diff line change 9
9
- native_sim/native/64
10
10
- frdm_k64f
11
11
- nrf52840dk/nrf52840
12
+ - nrf54l15dk/nrf54l15/cpuapp
13
+ - nrf54h20dk/nrf54h20/cpuapp
12
14
- nucleo_g474re
13
15
- nrf52_bsim
14
16
- nrf5340bsim/nrf5340/cpuapp
You can’t perform that action at this time.
0 commit comments