Initial PWM implementation from gpascualg
This commit is contained in:
parent
5200c5f2ef
commit
72d5dd99fb
5 changed files with 262 additions and 0 deletions
18
extras/pwm/pwm.h
Normal file
18
extras/pwm/pwm.h
Normal file
|
@ -0,0 +1,18 @@
|
|||
/* Implementation of PWM support for the Espressif SDK.
|
||||
*
|
||||
* Part of esp-open-rtos
|
||||
* Copyright (C) 2015 Guillem Pascual Ginovart (https://github.com/gpascualg)
|
||||
* Copyright (C) 2015 Javier Cardona (https://github.com/jcard0na)
|
||||
* BSD Licensed as described in the file LICENSE
|
||||
*/
|
||||
#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