History

counter: Introduce the Signal polarity component

The Signal polarity component represents the active level of a respective Signal. There are two possible states: positive (rising edge) and negative (falling edge); enum counter_signal_polarity represents these states. A convenience macro COUNTER_COMP_POLARITY() is provided for driver authors to declare a Signal polarity component.

William Breathitt Gray committed 4 years ago

Commit 650ae671 parent 7bbf8425 files · +43 −0Browse files

Showing the changes to include/uapi (1 of 5 files). Show all

Unified · Split

include/uapi/linux/counter.h+6−0
@@ -153,4 +153,10 @@ enum counter_synapse_action { · 152 unmodified lines
153153 COUNTER_SYNAPSE_ACTION_BOTH_EDGES,
154154 };
155155
156+/* Signal polarity values */
157+enum counter_signal_polarity {
158+ COUNTER_SIGNAL_POLARITY_POSITIVE,
159+ COUNTER_SIGNAL_POLARITY_NEGATIVE,
160+};
161+
156162 #endif /* _UAPI_COUNTER_H_ */