Lines Matching +full:10 +full:- +full:pin
3 * SPDX-License-Identifier: Apache-2.0
9 /* pin configuration for test device */
17 pinctrl_soc_pin_t pin; in ZTEST() local
19 zassert_equal(pcfg->state_cnt, 1U); in ZTEST()
21 scfg = &pcfg->states[0]; in ZTEST()
23 zassert_equal(scfg->id, PINCTRL_STATE_DEFAULT); in ZTEST()
24 zassert_equal(scfg->pin_cnt, 12U); in ZTEST()
26 pin = scfg->pins[0]; in ZTEST()
27 zassert_equal(GD32_PORT_GET(pin), 0); in ZTEST()
28 zassert_equal(GD32_PIN_GET(pin), 0); in ZTEST()
29 zassert_equal(GD32_AF_GET(pin), GD32_AF0); in ZTEST()
30 zassert_equal(GD32_PUPD_GET(pin), GD32_PUPD_NONE); in ZTEST()
31 zassert_equal(GD32_OTYPE_GET(pin), GD32_OTYPE_PP); in ZTEST()
32 zassert_equal(GD32_OSPEED_GET(pin), GD32_OSPEED_2MHZ); in ZTEST()
34 pin = scfg->pins[1]; in ZTEST()
35 zassert_equal(GD32_PORT_GET(pin), 1); in ZTEST()
36 zassert_equal(GD32_PIN_GET(pin), 1); in ZTEST()
37 zassert_equal(GD32_AF_GET(pin), GD32_AF1); in ZTEST()
38 zassert_equal(GD32_PUPD_GET(pin), GD32_PUPD_NONE); in ZTEST()
39 zassert_equal(GD32_OTYPE_GET(pin), GD32_OTYPE_PP); in ZTEST()
40 zassert_equal(GD32_OSPEED_GET(pin), GD32_OSPEED_2MHZ); in ZTEST()
42 pin = scfg->pins[2]; in ZTEST()
43 zassert_equal(GD32_PORT_GET(pin), 2); in ZTEST()
44 zassert_equal(GD32_PIN_GET(pin), 2); in ZTEST()
45 zassert_equal(GD32_AF_GET(pin), GD32_AF2); in ZTEST()
46 zassert_equal(GD32_PUPD_GET(pin), GD32_PUPD_NONE); in ZTEST()
47 zassert_equal(GD32_OTYPE_GET(pin), GD32_OTYPE_PP); in ZTEST()
48 zassert_equal(GD32_OSPEED_GET(pin), GD32_OSPEED_2MHZ); in ZTEST()
50 pin = scfg->pins[3]; in ZTEST()
51 zassert_equal(GD32_PORT_GET(pin), 0); in ZTEST()
52 zassert_equal(GD32_PIN_GET(pin), 3); in ZTEST()
53 zassert_equal(GD32_AF_GET(pin), GD32_AF3); in ZTEST()
54 zassert_equal(GD32_PUPD_GET(pin), GD32_PUPD_NONE); in ZTEST()
55 zassert_equal(GD32_OTYPE_GET(pin), GD32_OTYPE_OD); in ZTEST()
56 zassert_equal(GD32_OSPEED_GET(pin), GD32_OSPEED_2MHZ); in ZTEST()
58 pin = scfg->pins[4]; in ZTEST()
59 zassert_equal(GD32_PORT_GET(pin), 1); in ZTEST()
60 zassert_equal(GD32_PIN_GET(pin), 4); in ZTEST()
61 zassert_equal(GD32_AF_GET(pin), GD32_AF4); in ZTEST()
62 zassert_equal(GD32_PUPD_GET(pin), GD32_PUPD_NONE); in ZTEST()
63 zassert_equal(GD32_OTYPE_GET(pin), GD32_OTYPE_PP); in ZTEST()
64 zassert_equal(GD32_OSPEED_GET(pin), GD32_OSPEED_2MHZ); in ZTEST()
66 pin = scfg->pins[5]; in ZTEST()
67 zassert_equal(GD32_PORT_GET(pin), 2); in ZTEST()
68 zassert_equal(GD32_PIN_GET(pin), 5); in ZTEST()
69 zassert_equal(GD32_AF_GET(pin), GD32_AF5); in ZTEST()
70 zassert_equal(GD32_PUPD_GET(pin), GD32_PUPD_PULLUP); in ZTEST()
71 zassert_equal(GD32_OTYPE_GET(pin), GD32_OTYPE_PP); in ZTEST()
72 zassert_equal(GD32_OSPEED_GET(pin), GD32_OSPEED_2MHZ); in ZTEST()
74 pin = scfg->pins[6]; in ZTEST()
75 zassert_equal(GD32_PORT_GET(pin), 0); in ZTEST()
76 zassert_equal(GD32_PIN_GET(pin), 6); in ZTEST()
77 zassert_equal(GD32_AF_GET(pin), GD32_AF6); in ZTEST()
78 zassert_equal(GD32_PUPD_GET(pin), GD32_PUPD_PULLDOWN); in ZTEST()
79 zassert_equal(GD32_OTYPE_GET(pin), GD32_OTYPE_PP); in ZTEST()
80 zassert_equal(GD32_OSPEED_GET(pin), GD32_OSPEED_2MHZ); in ZTEST()
82 pin = scfg->pins[7]; in ZTEST()
83 zassert_equal(GD32_PORT_GET(pin), 1); in ZTEST()
84 zassert_equal(GD32_PIN_GET(pin), 7); in ZTEST()
85 zassert_equal(GD32_AF_GET(pin), GD32_AF7); in ZTEST()
86 zassert_equal(GD32_PUPD_GET(pin), GD32_PUPD_NONE); in ZTEST()
87 zassert_equal(GD32_OTYPE_GET(pin), GD32_OTYPE_PP); in ZTEST()
88 zassert_equal(GD32_OSPEED_GET(pin), GD32_OSPEED_2MHZ); in ZTEST()
90 pin = scfg->pins[8]; in ZTEST()
91 zassert_equal(GD32_PORT_GET(pin), 2); in ZTEST()
92 zassert_equal(GD32_PIN_GET(pin), 8); in ZTEST()
93 zassert_equal(GD32_AF_GET(pin), GD32_AF8); in ZTEST()
94 zassert_equal(GD32_PUPD_GET(pin), GD32_PUPD_NONE); in ZTEST()
95 zassert_equal(GD32_OTYPE_GET(pin), GD32_OTYPE_PP); in ZTEST()
96 zassert_equal(GD32_OSPEED_GET(pin), GD32_OSPEED_25MHZ); in ZTEST()
98 pin = scfg->pins[9]; in ZTEST()
99 zassert_equal(GD32_PORT_GET(pin), 0); in ZTEST()
100 zassert_equal(GD32_PIN_GET(pin), 9); in ZTEST()
101 zassert_equal(GD32_AF_GET(pin), GD32_AF9); in ZTEST()
102 zassert_equal(GD32_PUPD_GET(pin), GD32_PUPD_NONE); in ZTEST()
103 zassert_equal(GD32_OTYPE_GET(pin), GD32_OTYPE_PP); in ZTEST()
104 zassert_equal(GD32_OSPEED_GET(pin), GD32_OSPEED_50MHZ); in ZTEST()
106 pin = scfg->pins[10]; in ZTEST()
107 zassert_equal(GD32_PORT_GET(pin), 1); in ZTEST()
108 zassert_equal(GD32_PIN_GET(pin), 10); in ZTEST()
109 zassert_equal(GD32_AF_GET(pin), GD32_AF10); in ZTEST()
110 zassert_equal(GD32_PUPD_GET(pin), GD32_PUPD_NONE); in ZTEST()
111 zassert_equal(GD32_OTYPE_GET(pin), GD32_OTYPE_PP); in ZTEST()
112 zassert_equal(GD32_OSPEED_GET(pin), GD32_OSPEED_MAX); in ZTEST()
114 pin = scfg->pins[11]; in ZTEST()
115 zassert_equal(GD32_PORT_GET(pin), 2); in ZTEST()
116 zassert_equal(GD32_PIN_GET(pin), 11); in ZTEST()
117 zassert_equal(GD32_AF_GET(pin), GD32_ANALOG); in ZTEST()
118 zassert_equal(GD32_PUPD_GET(pin), GD32_PUPD_NONE); in ZTEST()
119 zassert_equal(GD32_OTYPE_GET(pin), GD32_OTYPE_PP); in ZTEST()
120 zassert_equal(GD32_OSPEED_GET(pin), GD32_OSPEED_2MHZ); in ZTEST()