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

A-Paul notifications at github.com
Mon Jun 8 13:47:08 CEST 2015


> @@ -342,6 +343,34 @@ extern "C" {
>  #define GPIO_B21_MAP        31
>  /** @} */
>  
> +/**
> + * @name PWM configuration
> + * @{
> + */
> +#define MCK_DIV_LB_MAX      (10U)

It's the maximum binary logarithm for the divisor of the prescaled clocks (MCK/2^n -> MCK/1...MCK/1024). Hence the "LB" in the name.
And it seems reasonable to put it in "pwm.c".
There were several macros where I was unsure whether to place them in "pwm.c" or "periph_conf.h". I'm still not got the context of "periph_conf.h" completely.
Is it just board specific -desptite that the cpu ist on board also-, or belongs to peripheral devices on the microcontroller too?

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


More information about the notifications mailing list