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

Kaspar Schleiser notifications at github.com
Thu Jun 11 14:54:28 CEST 2015


> +    PWM_0_DEV_CH7->PWM_CMR = PWM_CMR_CPRE_CLKA;
> +    PWM_0_DEV_CH7->PWM_CPRD = resolution - 1;
> +    PWM_0_DEV_CH7->PWM_CDTY = 0;
> +    PWM_0_DEV->PWM_ENA = PWM_0_ENA_CH7;
> +#endif
> +
> +    /* +++++++++++ Configure and init channels ready++++++++++ */
> +
> +
> +    /*
> +     * Disable GPIO and set peripheral A/B ("0/1") for pwm channel pins.
> +     *
> +     * TODO: Find out why simple assignment '=' isn't working although
> +     * registers are Write only
> +     */
> +#if PWM_0_CHANNELS > 0

same here!

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


More information about the notifications mailing list