Pacemaker code Implementation for SFWRENG 3K04
Dependencies: FXOS8700Q Queue mbed-rtos mbed
Fork of Pacemaker by
dataStruct.h@30:0cb4890910cd, 2016-11-29 (annotated)
- Committer:
- FiveDollar
- Date:
- Tue Nov 29 21:30:19 2016 +0000
- Revision:
- 30:0cb4890910cd
- Parent:
- 16:08d5e5a3ee74
this is the messed up code that i tried to fix
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
noahzwiep | 16:08d5e5a3ee74 | 1 | #pragma once |
noahzwiep | 16:08d5e5a3ee74 | 2 | #include "mbed.h" |
noahzwiep | 16:08d5e5a3ee74 | 3 | #include "hardware.h" |
noahzwiep | 16:08d5e5a3ee74 | 4 | #include "rtos.h" |
noahzwiep | 16:08d5e5a3ee74 | 5 | #include "queue.h" |
noahzwiep | 16:08d5e5a3ee74 | 6 | |
noahzwiep | 16:08d5e5a3ee74 | 7 | #define START_THREAD 1 |
noahzwiep | 16:08d5e5a3ee74 | 8 | |
FiveDollar | 30:0cb4890910cd | 9 | |
FiveDollar | 30:0cb4890910cd | 10 | void dataStruct(hardware*); |
noahzwiep | 16:08d5e5a3ee74 | 11 | queue getData(); |
FiveDollar | 30:0cb4890910cd | 12 | extern hardware* io; |
noahzwiep | 16:08d5e5a3ee74 | 13 | static const int N = 13; |
noahzwiep | 16:08d5e5a3ee74 | 14 | double k_streamPeriod; |
noahzwiep | 16:08d5e5a3ee74 | 15 | hardware* myHardware; |
noahzwiep | 16:08d5e5a3ee74 | 16 | double streamValue; |
FiveDollar | 30:0cb4890910cd | 17 | queue myQueue(1,N); |
noahzwiep | 16:08d5e5a3ee74 | 18 | static void threadStarter(void const *p); |
noahzwiep | 16:08d5e5a3ee74 | 19 | void storeData(); |
noahzwiep | 16:08d5e5a3ee74 | 20 | Thread thread; |
FiveDollar | 30:0cb4890910cd | 21 |