2017-05-01 13:13:50 -04:00
|
|
|
#ifndef __MICROPY_INCLUDED_LIB_PWM_H__
|
|
|
|
#define __MICROPY_INCLUDED_LIB_PWM_H__
|
|
|
|
|
2017-05-16 18:47:44 -04:00
|
|
|
void pwm_init(void);
|
2017-05-01 13:13:50 -04:00
|
|
|
void pwm_start(void);
|
|
|
|
void pwm_stop(void);
|
|
|
|
|
|
|
|
int pwm_set_period_us(int32_t us);
|
|
|
|
int32_t pwm_get_period_us(void);
|
|
|
|
void pwm_set_duty_cycle(int32_t pin, int32_t value);
|
|
|
|
void pwm_release(int32_t pin);
|
|
|
|
|
2017-05-16 18:47:44 -04:00
|
|
|
#endif // __MICROPY_INCLUDED_LIB_PWM_H__
|