mirror of https://github.com/ARMmbed/mbed-os.git
add: PwmOut::read_pulsewitdth_us() for compatibility
parent
7fe679c72e
commit
236194f7c3
|
@ -137,6 +137,13 @@ public:
|
||||||
*/
|
*/
|
||||||
int read_pulsewidth_us();
|
int read_pulsewidth_us();
|
||||||
|
|
||||||
|
/** Read the PWM pulsewidth
|
||||||
|
* @returns
|
||||||
|
* The PWM pulsewith, specified in microseconds (int)
|
||||||
|
*/
|
||||||
|
MBED_DEPRECATED("use read_pulsewidth_us() instead")
|
||||||
|
int read_pulsewitdth_us();
|
||||||
|
|
||||||
/** Suspend PWM operation
|
/** Suspend PWM operation
|
||||||
*
|
*
|
||||||
* Control the PWM state. This is primarily intended
|
* Control the PWM state. This is primarily intended
|
||||||
|
|
|
@ -121,6 +121,11 @@ int PwmOut::read_pulsewidth_us()
|
||||||
return val;
|
return val;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int PwmOut::read_pulsewitdth_us()
|
||||||
|
{
|
||||||
|
return read_pulsewidth_us();
|
||||||
|
}
|
||||||
|
|
||||||
void PwmOut::suspend()
|
void PwmOut::suspend()
|
||||||
{
|
{
|
||||||
core_util_critical_section_enter();
|
core_util_critical_section_enter();
|
||||||
|
|
Loading…
Reference in New Issue