@@ -68,17 +68,6 @@ inline int global_gpio_pin_configure(pin_size_t pinNumber, int flags) {
68
68
return gpio_pin_configure (local_gpio_port (pinNumber), local_gpio_pin (pinNumber), flags);
69
69
}
70
70
71
- template <class N , class Head > constexpr const N sum_of_list (const N sum, const Head &head)
72
- {
73
- return sum + head;
74
- }
75
-
76
- template <class N , class Head , class ... Tail>
77
- constexpr const N sum_of_list (const N sum, const Head &head, const Tail &...tail)
78
- {
79
- return sum_of_list (sum + head, tail...);
80
- }
81
-
82
71
template <class N , class Head > constexpr const N max_in_list (const N max, const Head &head)
83
72
{
84
73
return (max >= head) ? max : head;
@@ -93,8 +82,6 @@ constexpr const N max_in_list(const N max, const Head &head, const Tail &...tail
93
82
#define GPIO_NGPIOS (n, p, i ) DT_PROP(DT_GPIO_CTLR_BY_IDX(n, p, i), ngpios)
94
83
constexpr int max_ngpios = max_in_list(
95
84
0 , DT_FOREACH_PROP_ELEM_SEP(DT_PATH(zephyr_user), digital_pin_gpios, GPIO_NGPIOS, (, )));
96
- constexpr int sum_ngpios = sum_of_list(
97
- 0 , DT_FOREACH_PROP_ELEM_SEP(DT_PATH(zephyr_user), digital_pin_gpios, GPIO_NGPIOS, (, )));
98
85
99
86
/*
100
87
* GPIO callback implementation
0 commit comments