Created
December 4, 2018 21:07
-
-
Save frank9615/0af60976b4df8eb7ab8eff98a16b06c6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HEX | |
2000B420 CONSTANT ARM_TIMER_CNT | |
: us@ ARM_TIMER_CNT @ ; | |
: usecs ; | |
: msecs 1000 * ; | |
: secs 1000000 * ; | |
: us us@ + BEGIN DUP us@ - 0<= UNTIL DROP ; | |
: LEDON 00010000 20200028 ! ; | |
: LEDOFF 00010000 2020001C ! ; | |
: BLINK BEGIN LEDON 42 msecs us LEDOFF 42 msecs us 0 UNTIL ; | |
BLINK |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment