[riot-notifications] [RIOT] tests: added test for periph_timer plus adaption (#3780)

A-Paul notifications at github.com
Sun Sep 13 16:22:29 CEST 2015


> +
> +#define MAX_CHANNELS        (10U)
> +#define TIM_SPEED           (1U)        /* try to run with 1MHz */
> +#define CHAN_OFFSET         (5000U)     /* fire every 5ms */
> +
> +static volatile int fired;
> +static volatile uint32_t sw_count;
> +static volatile uint32_t timeouts[MAX_CHANNELS];
> +
> +static void cb(int chan)
> +{
> +    timeouts[chan] = sw_count;
> +    fired++;
> +}
> +
> +static int test_timer(int num)

`(unsigned num)`.
Why not even using 'tim_t' here? 

---
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/3780/files#r39348005
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20150913/9bbc9e0d/attachment.html>


More information about the notifications mailing list