[riot-notifications] [RIOT] Kinetis: hwtimer refactor (#3146)

Johann Fischer notifications at github.com
Thu Jun 4 01:21:57 CEST 2015


> +    unsigned int count_unset_total;
> +    unsigned int count_isr_total;
> +    unsigned int count_isr_rollover;
> +    unsigned int count_isr_handler_call;
> +    unsigned int count_isr_unset;
> +} hwtimer_stats = {
> +        .count_set_total = 0,
> +        .count_set_absolute = 0,
> +        .count_unset_total = 0,
> +        .count_isr_total = 0,
> +        .count_isr_rollover = 0,
> +        .count_isr_handler_call = 0,
> +        .count_isr_unset = 0,
> +};
> +
> +#define HWTIMER_STATS_INC(x) (hwtimer_stats.x++)

The identifier HWTIMER_STATS_INC sounds somehow confusing, I would write it small or/and insert a ..debug.. somewhere.

---
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/3146/files#r31680937
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20150603/5afe30ab/attachment-0001.html>


More information about the notifications mailing list