This is a simple example of assembly-language programming inside of an MBED program. It is just a blink program with two functions: setup() and loop().
main.cpp@0:5446675502f2, 2020-04-22 (annotated)
- Committer:
- ghsalazar
- Date:
- Wed Apr 22 15:14:54 2020 +0000
- Revision:
- 0:5446675502f2
Initial commit
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
ghsalazar | 0:5446675502f2 | 1 | #include "mbed.h" |
ghsalazar | 0:5446675502f2 | 2 | |
ghsalazar | 0:5446675502f2 | 3 | extern "C" void setup(void); |
ghsalazar | 0:5446675502f2 | 4 | extern "C" void loop(void); |
ghsalazar | 0:5446675502f2 | 5 | |
ghsalazar | 0:5446675502f2 | 6 | int main() { |
ghsalazar | 0:5446675502f2 | 7 | setup(); |
ghsalazar | 0:5446675502f2 | 8 | loop(); |
ghsalazar | 0:5446675502f2 | 9 | } |