File tree Expand file tree Collapse file tree 3 files changed +15
-3
lines changed Expand file tree Collapse file tree 3 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -133,8 +133,15 @@ class PwmOut {
133
133
134
134
/* * Read the PWM pulsewidth
135
135
* @returns
136
- * The PWM pulsewith , specified in microseconds (int)
136
+ * The PWM pulsewidth , specified in microseconds (int)
137
137
*/
138
+ int read_pulsewidth_us ();
139
+
140
+ /* * Read the PWM pulsewidth
141
+ * @returns
142
+ * The PWM pulsewidth, specified in microseconds (int)
143
+ */
144
+ MBED_DEPRECATED (" use read_pulsewidth_us() instead" )
138
145
int read_pulsewitdth_us ();
139
146
140
147
/* * Suspend PWM operation
Original file line number Diff line number Diff line change @@ -113,14 +113,19 @@ void PwmOut::pulsewidth_us(int us)
113
113
core_util_critical_section_exit ();
114
114
}
115
115
116
- int PwmOut::read_pulsewitdth_us ()
116
+ int PwmOut::read_pulsewidth_us ()
117
117
{
118
118
core_util_critical_section_enter ();
119
119
auto val = pwmout_read_pulsewidth_us (&_pwm);
120
120
core_util_critical_section_exit ();
121
121
return val;
122
122
}
123
123
124
+ int PwmOut::read_pulsewitdth_us ()
125
+ {
126
+ return read_pulsewidth_us ();
127
+ }
128
+
124
129
void PwmOut::suspend ()
125
130
{
126
131
core_util_critical_section_enter ();
Original file line number Diff line number Diff line change @@ -158,7 +158,7 @@ void pwmout_pulsewidth_us(pwmout_t *obj, int us);
158
158
/** Read the PWM pulsewidth specified in microseconds
159
159
*
160
160
* @param obj The pwmout object
161
- * @return A int output pulsewitdth
161
+ * @return A int output pulsewidth
162
162
*/
163
163
int pwmout_read_pulsewidth_us (pwmout_t * obj );
164
164
You can’t perform that action at this time.
0 commit comments