![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
MAIN
Fork of SOFT253_Template_Weather_OS_54 by
main.cpp@37:13f74964a045, 2017-05-15 (annotated)
- Committer:
- J_Satchell
- Date:
- Mon May 15 11:38:07 2017 +0000
- Revision:
- 37:13f74964a045
- Parent:
- 36:af6abc6f7590
fff
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Jonathan Austin |
0:2757d7abb7d9 | 1 | #include "mbed.h" |
martinsimpson | 32:260a288be58f | 2 | #include "rtos.h" |
noutram | 35:af125862c33e | 3 | #include "hts221.h" |
martinsimpson | 32:260a288be58f | 4 | #include "LPS25H.h" |
J_Satchell | 36:af6abc6f7590 | 5 | #include "prompt.hpp" |
J_Satchell | 36:af6abc6f7590 | 6 | #include "log.hpp" |
J_Satchell | 36:af6abc6f7590 | 7 | #include "state.hpp" |
J_Satchell | 36:af6abc6f7590 | 8 | #include "sensor.hpp" |
J_Satchell | 36:af6abc6f7590 | 9 | #include "mbed.h" |
J_Satchell | 36:af6abc6f7590 | 10 | #include "rtos.h" |
noutram | 35:af125862c33e | 11 | |
J_Satchell | 36:af6abc6f7590 | 12 | Thread promptThread; |
J_Satchell | 36:af6abc6f7590 | 13 | Thread sensorThread; |
noutram | 35:af125862c33e | 14 | |
noutram | 35:af125862c33e | 15 | int main() |
J_Satchell | 36:af6abc6f7590 | 16 | { |
J_Satchell | 36:af6abc6f7590 | 17 | prompt_init(); |
J_Satchell | 36:af6abc6f7590 | 18 | sensor_init(); |
J_Satchell | 36:af6abc6f7590 | 19 | |
J_Satchell | 36:af6abc6f7590 | 20 | promptThread.start(prompt_run); |
J_Satchell | 36:af6abc6f7590 | 21 | sensorThread.start(sensor_run); |
J_Satchell | 36:af6abc6f7590 | 22 | |
J_Satchell | 36:af6abc6f7590 | 23 | return 0; |
J_Satchell | 36:af6abc6f7590 | 24 | } |
noutram | 35:af125862c33e | 25 | |
noutram | 35:af125862c33e | 26 | |
noutram | 35:af125862c33e | 27 | |
noutram | 35:af125862c33e | 28 | |
J_Satchell | 36:af6abc6f7590 | 29 |