File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,20 @@ typedef enum
47
47
CHANGE = 3
48
48
}IrqModes ;
49
49
50
+ typedef enum {
51
+ PWM_CLK_FREQ_48M = 1 ,
52
+ PWM_CLK_FREQ_24M = 2 ,
53
+ PWM_CLK_FREQ_16M = 3 ,
54
+ PWM_CLK_FREQ_12M = 4 ,
55
+ PWM_CLK_FREQ_8M = 5 ,
56
+ PWM_CLK_FREQ_6M = 7 ,
57
+ PWM_CLK_FREQ_4M = 11 ,
58
+ PWM_CLK_FREQ_3M = 15 ,
59
+ PWM_CLK_FREQ_2M = 23 ,
60
+ PWM_CLK_FREQ_1M = 47
61
+ } clock_pwm_t ;
62
+
63
+
50
64
#define DRIVE_MODE_BITS (3)
51
65
#define DRIVE_MODE_IND_MASK (0xFFFFFFFFu >> (32 - DRIVE_MODE_BITS))
52
66
@@ -70,6 +84,10 @@ uint32_t millis(void);
70
84
uint32_t micros (void );
71
85
uint64_t getID (void );
72
86
int cubecell_random (int r );
87
+ void setPWM_Frequency (clock_pwm_t freq );
88
+ void setPWM_ComparePeriod (uint16_t period );
89
+
90
+
73
91
#ifdef __cplusplus
74
92
}
75
93
#endif
You can’t perform that action at this time.
0 commit comments