Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of TinyJS by
Diff: Mbed_Functions.cpp
- Revision:
- 8:819934a27c2d
- Parent:
- 7:40010b4dc51d
- Child:
- 9:f80cf055f03d
--- a/Mbed_Functions.cpp Sun Jan 19 18:08:47 2014 +0000 +++ b/Mbed_Functions.cpp Mon Jan 20 00:07:35 2014 +0000 @@ -258,19 +258,14 @@ tinyJS->addNative("function mbed.AnalogIn(pinName)", mbedAnalogIn, 0); tinyJS->addNative("function mbed.AnalogOut(pinName, val)", mbedAnalogOut, 0); - tinyJS->addNative("function mbed.interruptIn(pinName, edge, mode, callback)", mbedInterruptIn, tinyJS); - //tinyJS->addNative("function mbed.RemoveInterrupt(pinName)", mbedRemoveInterrupt, tinyJS); - + tinyJS->addNative("function mbed.InterruptIn(pinName, edge, mode, callback)", mbedInterruptIn, tinyJS); tinyJS->addNative("function mbed.wait(s)", mbedWait, 0); - - tinyJS->addNative("function mbed.timerStart", mbedTimerStart, 0); - tinyJS->addNative("function mbed.timerStop", mbedTimerStop, 0); - tinyJS->addNative("function mbed.timerReset", mbedTimerReset, 0); - tinyJS->addNative("function mbed.timerRead", mbedTimerRead, 0); - + tinyJS->addNative("function mbed.TimerStart", mbedTimerStart, 0); + tinyJS->addNative("function mbed.TimerStop", mbedTimerStop, 0); + tinyJS->addNative("function mbed.TimerReset", mbedTimerReset, 0); + tinyJS->addNative("function mbed.TimerRead", mbedTimerRead, 0); tinyJS->addNative("function mbed.Timeout(callback, t)", mbedTimeout, tinyJS); - tinyJS->addNative("function mbed.memfree()", mbedMemfree, 0); }