[riot-notifications] [RIOT-OS/RIOT] drivers/pulse_counter: refactor the prototypes of read funcs (#10716)

Kees Bakker notifications at github.com
Sun Jan 6 19:47:58 CET 2019


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.

In two places a const `void` pointer is casted to a non-const `pulse_counter_t` pointer.

This has not been tested with hardware, so please test before merging.
You can view, comment on, or merge this pull request online at:

  https://github.com/RIOT-OS/RIOT/pull/10716

-- Commit Summary --

  * drivers/pulse_counter: refactor the prototypes of read funcs

-- File Changes --

    M drivers/include/pulse_counter.h (10)
    M drivers/pulse_counter/pulse_counter.c (12)
    M drivers/pulse_counter/pulse_counter_saul.c (8)

-- Patch Links --

https://github.com/RIOT-OS/RIOT/pull/10716.patch
https://github.com/RIOT-OS/RIOT/pull/10716.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/10716
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190106/30b0a654/attachment.html>


More information about the notifications mailing list