[riot-notifications] [RIOT] [WIP] cpu/sam3x8e: Add pwm implementation (#3170)
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 "126.96.36.199 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:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the notifications