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

Hauke Petersen notifications at github.com
Thu Sep 17 13:54:59 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)

Nope, you are right. Somehow I was convinced, that the loop in line 124 was using and `int` as counter variable.... Sorry for this discussion - clearly my fault...

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


More information about the notifications mailing list