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

Peter Kietzmann notifications at github.com
Mon Jun 8 09:06:57 CEST 2015


> + * Duty-cycle update is selected individualy.
> + *
> + * \warning {Although channel 0 isn't routed to a pin, controlling th sync
> + * group means it MUST NOT used for other purposes, Channels 1-3 are still
> + * free usable}
> + * \todo { Use PWM_0_CHANNELS for selective initialisation }
> + */
> +int pwm_init (pwm_t dev, pwm_mode_t mode,
> +              unsigned int frequency,
> +              unsigned int resolution)
> +{
> +
> +    int32_t retval = ERR_INIT_MODE;      /* Worst/First case */
> +    uint32_t pwm_clk = 0;                //!< Desired/real pwm_clock //
> +    uint32_t diva = 1;                   //!< Candidate for 8bit prescaler //
> +    uint32_t prea = 0;                   //!< Candidate for clock select //

Please check your whole code and use normal comments for internals

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


More information about the notifications mailing list