mbed library sources for airmote
Fork of mbed-src by
Revision 623:810c7848b2db, committed 2015-09-10
- Comitter:
- zskdan
- Date:
- Thu Sep 10 21:56:09 2015 +0000
- Parent:
- 622:c3f37705f4fa
- Child:
- 624:15d19c4ec19a
- Commit message:
- implement stop
Changed in this revision
api/PwmOut.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/api/PwmOut.h Thu Sep 10 21:51:18 2015 +0000 +++ b/api/PwmOut.h Thu Sep 10 21:56:09 2015 +0000 @@ -126,6 +126,10 @@ void pulsewidth_us(int us) { pwmout_pulsewidth_us(&_pwm, us); } + + void stop() { + pwmout_free(&_pwm); + } #ifdef MBED_OPERATORS /** A operator shorthand for write()