[riot-notifications] [RIOT] cpu/samd21: added peripheral PWM driver (#3127)

Peter Kietzmann notifications at github.com
Mon Jun 1 20:31:25 CEST 2015


> +
> +#include <stdint.h>
> +#include <string.h>
> +
> +#include "log.h"
> +#include "cpu.h"
> +#include "board.h"
> +#include "periph/pwm.h"
> +#include "periph_conf.h"
> +
> +/* ignore file in case no PWM devices are defined */
> +#if PWM_NUMOF
> +
> +static inline int _num(pwm_t dev)
> +{
> +    return ((int)(pwm_config[dev].dev) & 0xc00) >> 10;

Now I remember :-), thanks! Would you still add a small documenting comment to the code? No need to answer, just do it or not ;-)

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


More information about the notifications mailing list