-
- Downloads
drivers/pulse_counter: refactor the prototypes of read funcs
This change makes it more clear that the dev is modified in some of the read functions. Only pulse_counter_read_without_reset gets a const pointer argument. Also, use pulse_counter_t pointers instead of void pointers where possible.
Showing
- drivers/include/pulse_counter.h 5 additions, 5 deletionsdrivers/include/pulse_counter.h
- drivers/pulse_counter/pulse_counter.c 6 additions, 6 deletionsdrivers/pulse_counter/pulse_counter.c
- drivers/pulse_counter/pulse_counter_saul.c 6 additions, 2 deletionsdrivers/pulse_counter/pulse_counter_saul.c
Please register or sign in to comment