00001 #ifndef __pic_pwm_h
00002 #define __pic_pwm_h
00003
00004
00005
00006
00007 #include "config.h"
00008
00009
00010 #include "pic_utils.h"
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034 extern uns8 pwm_count;
00035
00036 extern uns8 pwm_level[PWM_NUM_PINS];
00037
00038
00039 void pwm_handle();
00040
00041
00042 void pwm_set_level(uns8 pwm_item, uns8 level);
00043
00044
00045 uns8 pwm_get_level(uns8 pwm_item);
00046
00047
00048 void pwm_setup();
00049
00050
00051 void pwm_set_transition(uns8 to_level, uns16 steps);
00052
00053 #endif