Bradley Kohler
/
FRDM_Pacemaker
a pacemaker
main.cpp@0:9e97accb2a4c, 2016-10-26 (annotated)
- Committer:
- kohlerba
- Date:
- Wed Oct 26 02:06:02 2016 +0000
- Revision:
- 0:9e97accb2a4c
- Child:
- 1:446bd28a1f19
You took my pencil!!!!!!!!!!!!!!!!!!
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
kohlerba | 0:9e97accb2a4c | 1 | #include "clock.h" |
kohlerba | 0:9e97accb2a4c | 2 | Serial pc(USBTX , USBRX); |
kohlerba | 0:9e97accb2a4c | 3 | |
kohlerba | 0:9e97accb2a4c | 4 | //DigitalOut gpo(D0); |
kohlerba | 0:9e97accb2a4c | 5 | //DigitalOut led(LED_RED); |
kohlerba | 0:9e97accb2a4c | 6 | // |
kohlerba | 0:9e97accb2a4c | 7 | // |
kohlerba | 0:9e97accb2a4c | 8 | //Ticker tick; |
kohlerba | 0:9e97accb2a4c | 9 | // |
kohlerba | 0:9e97accb2a4c | 10 | //enum chamber {atrial = 'a', ventricle = 'v' , dual = 'd'}; |
kohlerba | 0:9e97accb2a4c | 11 | // |
kohlerba | 0:9e97accb2a4c | 12 | //double counter; |
kohlerba | 0:9e97accb2a4c | 13 | // |
kohlerba | 0:9e97accb2a4c | 14 | //int generate_sq_wave(int amp ,int freq); |
kohlerba | 0:9e97accb2a4c | 15 | //void count_time(void); |
kohlerba | 0:9e97accb2a4c | 16 | // |
kohlerba | 0:9e97accb2a4c | 17 | //void count_time(void){ |
kohlerba | 0:9e97accb2a4c | 18 | // counter += 0.0001; |
kohlerba | 0:9e97accb2a4c | 19 | // } |
kohlerba | 0:9e97accb2a4c | 20 | // |
kohlerba | 0:9e97accb2a4c | 21 | int main() |
kohlerba | 0:9e97accb2a4c | 22 | { |
kohlerba | 0:9e97accb2a4c | 23 | start_clock(); |
kohlerba | 0:9e97accb2a4c | 24 | while (true) { |
kohlerba | 0:9e97accb2a4c | 25 | pc.printf("%2.4f" , get_time()); |
kohlerba | 0:9e97accb2a4c | 26 | wait(0.5); |
kohlerba | 0:9e97accb2a4c | 27 | } |
kohlerba | 0:9e97accb2a4c | 28 | } |