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: X_NUCLEO_IKS01A1 mbed-rtos mbed
Fork of HelloWorld_IKS01A1 by
mailBox.cpp@28:840000670c88, 2016-05-08 (annotated)
- Committer:
- stwykd
- Date:
- Sun May 08 14:49:34 2016 +0000
- Revision:
- 28:840000670c88
- Parent:
- 25:55c0dc5b32b3
- Child:
- 31:eb7320bd1d37
Implement consumer, producer with mail box. Buffer can now be deleted
Who changed what in which revision?
| User | Revision | Line number | New contents of line | 
|---|---|---|---|
| nlsantos | 12:7ef8061de189 | 1 | #include "mbed.h" | 
| nlsantos | 12:7ef8061de189 | 2 | #include "rtos.h" | 
| stwykd | 28:840000670c88 | 3 | |
| stwykd | 28:840000670c88 | 4 | #define QUEUESIZE 100 | 
| stwykd | 28:840000670c88 | 5 | |
| stwykd | 28:840000670c88 | 6 | typedef struct { | 
| Jacinta | 18:bf6578e82712 | 7 | uint8_t id; | 
| stwykd | 28:840000670c88 | 8 | float tempCelsius; | 
| Jacinta | 18:bf6578e82712 | 9 | float tempFarenheit; | 
| Jacinta | 18:bf6578e82712 | 10 | float humidity; | 
| Jacinta | 18:bf6578e82712 | 11 | float pressure; | 
| stwykd | 28:840000670c88 | 12 | int32_t accelerometer[3]; | 
| stwykd | 28:840000670c88 | 13 | int32_t gyroscope[3]; | 
| stwykd | 28:840000670c88 | 14 | int32_t magnetometer[3]; | 
| stwykd | 24:527fdf64cbb0 | 15 | char* date; | 
| Jacinta | 18:bf6578e82712 | 16 | } log_data; | 
| stwykd | 28:840000670c88 | 17 | |
| stwykd | 28:840000670c88 | 18 | Mail<log_data, QUEUESIZE> mail_box; | 

