[riot-notifications] [RIOT] cpu/samd21: added peripheral PWM driver (#3127)

Peter Kietzmann notifications at github.com
Mon Jun 1 12:21:45 CEST 2015


> + * @brief PWM device configuration data structure
> + *
> + * TODO: this should be moved into the CPU folder
> + */
> +typedef struct {
> +    Tcc *dev;                   /*< TCC device to use */
> +    pwm_conf_chan_t chan[2];    /**< channel configuration */
> +} pwm_conf_t;
> +
> +/* PWM device configuration */
> +#if PWM_NUMOF
> +static const pwm_conf_t pwm_config[] = {
> +#if PWM_0_EN
> +    {TCC1, {
> +        {(PortGroup *)0x41004400, 6, 4, 0}, /* port 0, pin 6, af E, chan 0 */
> +        {(PortGroup *)0x41004400, 7, 4, 1}  /* port 0, pin 7, af E, chan 1 */

This is maybe a stupid question but where do I find these pins?

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


More information about the notifications mailing list