Re: [riot-devel] PWM Driver

2017-01-22 Thread Peter Kietzmann
Hi Ilias, the periph_conf.h file should be the only one that you need to adapt. I didn't look it up but it might be that you need to make use of different PWM devices (TCC0 and TCC1) if you different periods and stuff. There is no need to adopt the loop in the driver. If you only want one channel

Re: [riot-devel] PWM on Atmega256rfr2

2017-01-22 Thread Bas Stottelaar
Hi Steffen, Have you taken a look at existing implementations? For instance, the PWM driver for the STM32 [1, 2]? * The pwm_init enables the PWM peripheral, given a frequency and resolution. Frequency and resolution relate [3]. * The number of available channels is returned by pwm_channels. Many

[riot-devel] PWM on Atmega256rfr2

2017-01-22 Thread Steffen Robertz
Hi, I recently started using RIOT OS for my Bachelor Thesis. My first task is to implement the pwm periphal in order to use it with an rgb led. And that already is where my problems start: I don't understand how the functions in pwm.h are supposed to work and therefore can't implement them in