Clock cycle

Dependencies:   mbed

Committer:
gkumar
Date:
Thu Jun 11 07:30:21 2015 +0000
Revision:
0:122d7b243f18
Execution_time

Who changed what in which revision?

UserRevisionLine numberNew 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 }