We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7fe679c commit 236194fCopy full SHA for 236194f
drivers/include/drivers/PwmOut.h
@@ -137,6 +137,13 @@ class PwmOut {
137
*/
138
int read_pulsewidth_us();
139
140
+ /** Read the PWM pulsewidth
141
+ * @returns
142
+ * The PWM pulsewith, specified in microseconds (int)
143
+ */
144
+ MBED_DEPRECATED("use read_pulsewidth_us() instead")
145
+ int read_pulsewitdth_us();
146
+
147
/** Suspend PWM operation
148
*
149
* Control the PWM state. This is primarily intended
drivers/source/PwmOut.cpp
@@ -121,6 +121,11 @@ int PwmOut::read_pulsewidth_us()
121
return val;
122
}
123
124
+int PwmOut::read_pulsewitdth_us()
125
+{
126
+ return read_pulsewidth_us();
127
+}
128
129
void PwmOut::suspend()
130
{
131
core_util_critical_section_enter();
0 commit comments