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 {
133133
134134 /* * Read the PWM pulsewidth
135135 * @returns
136- * The PWM pulsewith , specified in microseconds (int)
136+ * The PWM pulsewidth , specified in microseconds (int)
137137 */
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" )
138145 int read_pulsewitdth_us ();
139146
140147 /* * Suspend PWM operation
Original file line number Diff line number Diff line change @@ -113,14 +113,19 @@ void PwmOut::pulsewidth_us(int us)
113113 core_util_critical_section_exit ();
114114}
115115
116- int PwmOut::read_pulsewitdth_us ()
116+ int PwmOut::read_pulsewidth_us ()
117117{
118118 core_util_critical_section_enter ();
119119 auto val = pwmout_read_pulsewidth_us (&_pwm);
120120 core_util_critical_section_exit ();
121121 return val;
122122}
123123
124+ int PwmOut::read_pulsewitdth_us ()
125+ {
126+ return read_pulsewidth_us ();
127+ }
128+
124129void PwmOut::suspend ()
125130{
126131 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);
158158/** Read the PWM pulsewidth specified in microseconds
159159 *
160160 * @param obj The pwmout object
161- * @return A int output pulsewitdth
161+ * @return A int output pulsewidth
162162 */
163163int pwmout_read_pulsewidth_us (pwmout_t * obj );
164164
You can’t perform that action at this time.
0 commit comments