Software (timer-based) PWM. More...
#include "config.h"
#include "pic_utils.h"
Go to the source code of this file.
Functions | |
uns8 | pwm_get_level (uns8 pwm_item) |
void | pwm_handle () |
void | pwm_set_level (uns8 pwm_item, uns8 level) |
void | pwm_set_transition (uns8 to_level, uns16 steps) |
void | pwm_setup_io () |
Variables | |
uns8 | pwm_count |
uns8 | pwm_level [PWM_NUM_PINS] |
Definition in file pic_pwm.h.
void pwm_handle | ( | ) |
void pwm_set_level | ( | uns8 | pwm_item, | |
uns8 | level | |||
) |
void pwm_set_transition | ( | uns8 | to_level, | |
uns16 | steps | |||
) |
void pwm_setup_io | ( | ) |
Definition at line 58 of file pic_pwm.c.
References make_output.
uns8 pwm_count |
Definition at line 41 of file pic_pwm.c.
Referenced by pwm_handle().
uns8 pwm_level[PWM_NUM_PINS] |
Definition at line 42 of file pic_pwm.c.
Referenced by pwm_get_level(), pwm_handle(), and pwm_set_level().