[riot-notifications] [RIOT] cpu/lpc2387: added periph timer implementation (#3779)
Kaspar Schleiser
notifications at github.com
Fri Sep 4 15:48:54 CEST 2015
> + }
> +}
> +
> +int timer_init(tim_t tim, unsigned int us_per_tick, void (*callback)(int))
> +{
> + /* get the timers base register */
> + lpc23xx_timer_t *dev = get_dev(tim);
> +
> + /* make sure the timer device is valid */
> + if (dev == NULL) {
> + return -1;
> + }
> +
> + /* save the callback */
> + isr_ctx[tim].cb = callback;
> + /* enable power, config periph clock and install ISR vector */
> Think of all the newlines wasting ROM!
And the compile time overhead!
---
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/3779/files#r38752888
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20150904/886742ab/attachment.html>
More information about the notifications
mailing list