![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Finished project.
Fork of ReferredCoursework2016 by
buffer.h@91:cd9fcd45ecf6, 2017-08-17 (annotated)
- Committer:
- J_Satchell
- Date:
- Thu Aug 17 06:58:29 2017 +0000
- Revision:
- 91:cd9fcd45ecf6
- Parent:
- 90:38dfa3f350aa
Added mutex
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
J_Satchell | 90:38dfa3f350aa | 1 | #ifndef BUFFER_H |
J_Satchell | 90:38dfa3f350aa | 2 | #define BUFFER_H |
J_Satchell | 90:38dfa3f350aa | 3 | #include "mbed.h" |
J_Satchell | 90:38dfa3f350aa | 4 | #include "rtos.h" |
J_Satchell | 90:38dfa3f350aa | 5 | |
J_Satchell | 90:38dfa3f350aa | 6 | //creates struct to store accelerometer data |
J_Satchell | 90:38dfa3f350aa | 7 | typedef struct { |
J_Satchell | 90:38dfa3f350aa | 8 | int32_t x; |
J_Satchell | 90:38dfa3f350aa | 9 | int32_t y; |
J_Satchell | 90:38dfa3f350aa | 10 | int32_t z; |
J_Satchell | 90:38dfa3f350aa | 11 | } AccelData; |
J_Satchell | 90:38dfa3f350aa | 12 | |
J_Satchell | 90:38dfa3f350aa | 13 | void log_push(AccelData data); |
J_Satchell | 90:38dfa3f350aa | 14 | AccelData log_get(); |
J_Satchell | 90:38dfa3f350aa | 15 | void print_averages(); |
J_Satchell | 90:38dfa3f350aa | 16 | #endif |