Basic PWM implementation [WIP]
This commit is contained in:
parent
bcc22bdfc5
commit
adf392ed06
3 changed files with 180 additions and 0 deletions
11
extras/pwm/pwm.h
Normal file
11
extras/pwm/pwm.h
Normal 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();
|
||||
Loading…
Add table
Add a link
Reference in a new issue