Basic PWM implementation [WIP]

This commit is contained in:
Blipi 2015-08-28 22:24:14 +02:00 committed by gpascualg
parent d14d5b1aab
commit 222d96fdb0
3 changed files with 180 additions and 0 deletions

11
extras/pwm/pwm.h Normal file
View file

@ -0,0 +1,11 @@
#include <stdint.h>
#define MAX_PWM_PINS 8
void pwm_init(uint8_t npins, uint8_t* pins);
void pwm_set_freq(uint16_t freq);
void pwm_set_duty(uint16_t duty);
void pwm_restart();
void pwm_start();
void pwm_stop();