mirror of https://github.com/ARMmbed/mbed-os.git
rename: read_pulsewitdth_us to read_pulsewidth_us
parent
54e8693ef4
commit
6a4ba443ea
|
@ -135,7 +135,7 @@ public:
|
||||||
* @returns
|
* @returns
|
||||||
* The PWM pulsewith, specified in microseconds (int)
|
* The PWM pulsewith, specified in microseconds (int)
|
||||||
*/
|
*/
|
||||||
int read_pulsewitdth_us();
|
int read_pulsewidth_us();
|
||||||
|
|
||||||
/** Suspend PWM operation
|
/** Suspend PWM operation
|
||||||
*
|
*
|
||||||
|
|
|
@ -113,7 +113,7 @@ void PwmOut::pulsewidth_us(int us)
|
||||||
core_util_critical_section_exit();
|
core_util_critical_section_exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
int PwmOut::read_pulsewitdth_us()
|
int PwmOut::read_pulsewidth_us()
|
||||||
{
|
{
|
||||||
core_util_critical_section_enter();
|
core_util_critical_section_enter();
|
||||||
auto val = pwmout_read_pulsewidth_us(&_pwm);
|
auto val = pwmout_read_pulsewidth_us(&_pwm);
|
||||||
|
|
Loading…
Reference in New Issue