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

Peter Kietzmann notifications at github.com
Wed Jun 10 21:47:09 CEST 2015


> +
> +        frequency = F_CPU / ((resolution * diva) << prea);
> +    }
> +
> +    retval = frequency;
> +
> +    /* Activate PWM block by enabling it's clock. */
> +    PMC->PMC_PCER1 = PMC_PCER1_PID36;
> +
> +    /*
> +     * ++ Initialisation ++
> +     * adviced by "38.6.5.1 Initialization" in
> +     * "Atmel SAM3X8E  SAM3X8C SAM3X4E SAM3X4C SAM3A8C SAM3A8C Datasheet"
> +     */
> +    /* Unlock User Interface */
> +    PWM_0_DEV->PWM_WPCR  = PWM_ENA_CHID0;

Yeah, there you're right. It was just an example and now you got what I meant :-) . Let's talk about the unclear things tomorrow. BTW: nice to hear that your drivers is working now!

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


More information about the notifications mailing list