[riot-notifications] [RIOT] [WIP] cpu/sam3x8e: Add pwm implementation (#3170)

Peter Kietzmann notifications at github.com
Mon Jun 8 08:56:53 CEST 2015


> +
> +/*
> + * guard file in case no PWM device is defined, all #define'd in "periph_conf.h"
> + */
> +#if PWM_NUMOF && (PWM_0_EN || PWM_1_EN || PWM_2_EN || PWM_3_EN)
> +
> +#define ERR_INIT_MODE           (-1)
> +#define ERR_INIT_BWTH           (-2)
> +#define ERR_SET_CHAN            (-1)
> +
> +// Disable IO on PC2 and set Peripheral device B (PWM0L)
> +#define PWM_0_PIN_SET                           \
> +    PIOC->PIO_PDR |= PIO_PDR_P2;                \
> +    PIOC->PIO_ABSR |= PWM_0_PIN;
> +
> +/*!

I am unsure if this documentation should be part of doxygen. Any other opinions here? Anyway, please clarify the ToDos and remove them from the doc

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


More information about the notifications mailing list