GOPA KUMAR K C
/
Execution_Time
Clock cycle
main.cpp@0:122d7b243f18, 2015-06-11 (annotated)
- Committer:
- gkumar
- Date:
- Thu Jun 11 07:30:21 2015 +0000
- Revision:
- 0:122d7b243f18
Execution_time
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
gkumar | 0:122d7b243f18 | 1 | #include "mbed.h" |
gkumar | 0:122d7b243f18 | 2 | |
gkumar | 0:122d7b243f18 | 3 | DigitalOut gpo(D7); |
gkumar | 0:122d7b243f18 | 4 | |
gkumar | 0:122d7b243f18 | 5 | int main() |
gkumar | 0:122d7b243f18 | 6 | { |
gkumar | 0:122d7b243f18 | 7 | while (true) { |
gkumar | 0:122d7b243f18 | 8 | gpo = !gpo; // toggle pin |
gkumar | 0:122d7b243f18 | 9 | wait_us(1); |
gkumar | 0:122d7b243f18 | 10 | } |
gkumar | 0:122d7b243f18 | 11 | } |