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

Peter Kietzmann notifications at github.com
Wed Jun 10 08:42:39 CEST 2015


> +            chan = PWM_0_DEV_CH6;
> +            break;
> +#endif
> +#if PWM_0_CHANNELS > 7
> +
> +        case 7:
> +            chan = PWM_0_DEV_CH7;
> +            break;
> +#endif
> +
> +        default:
> +            ;
> +    }
> +
> +    if (chan) {
> +        period = chan->PWM_CPRD & PWM_MAX_VALUE;

Which value is it that you read here? I'm just wondering about the `if` statement some lines below

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


More information about the notifications mailing list