Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: FXOS8700Q Queue mbed-rtos mbed
Fork of Pacemaker by
voor.cpp@18:aef2f75f216b, 2016-11-16 (annotated)
- Committer:
- trane3
- Date:
- Wed Nov 16 20:55:27 2016 +0000
- Revision:
- 18:aef2f75f216b
- Parent:
- 11:35b259e70c9a
test for threading and width setting - (eric)
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| trane3 | 7:4eb590c7e064 | 1 | #pragma once |
| trane3 | 7:4eb590c7e064 | 2 | #include "mbed.h" |
| trane3 | 7:4eb590c7e064 | 3 | #include "voor.h" |
| trane3 | 8:75c1dd8b0d61 | 4 | #include "pulse.h" |
| trane3 | 18:aef2f75f216b | 5 | #include "rtos.h" |
| trane3 | 7:4eb590c7e064 | 6 | |
| trane3 | 8:75c1dd8b0d61 | 7 | voor::voor(){} |
| trane3 | 8:75c1dd8b0d61 | 8 | |
| trane3 | 8:75c1dd8b0d61 | 9 | voor::voor(pulse* p){ |
| trane3 | 8:75c1dd8b0d61 | 10 | voorPulse = p; |
| trane3 | 18:aef2f75f216b | 11 | // Thread thread(voor_pace); |
| trane3 | 7:4eb590c7e064 | 12 | } |
| trane3 | 7:4eb590c7e064 | 13 | |
| trane3 | 8:75c1dd8b0d61 | 14 | voor::~voor(){}; |
| trane3 | 8:75c1dd8b0d61 | 15 | |
| trane3 | 8:75c1dd8b0d61 | 16 | void voor::startPace(){ |
| trane3 | 11:35b259e70c9a | 17 | while (true){ |
| trane3 | 11:35b259e70c9a | 18 | voorPulse->startPulse(); |
| trane3 | 11:35b259e70c9a | 19 | //startPulse(); |
| trane3 | 11:35b259e70c9a | 20 | } |
| trane3 | 8:75c1dd8b0d61 | 21 | } |
| trane3 | 8:75c1dd8b0d61 | 22 | |
| trane3 | 8:75c1dd8b0d61 | 23 | void voor::setPacingMode(int i){ |
| trane3 | 8:75c1dd8b0d61 | 24 | y_pacingMode = i; |
| trane3 | 11:35b259e70c9a | 25 | } |
| trane3 | 18:aef2f75f216b | 26 | |
| trane3 | 18:aef2f75f216b | 27 | void voor::voor_pace(void const *args){ |
| trane3 | 18:aef2f75f216b | 28 | startPace(); |
| trane3 | 18:aef2f75f216b | 29 | } |
