trabalho
Dependencies: X_NUCLEO_IKS01A1 mbed-rtos mbed
Fork of HelloWorld_IKS01A1 by
Revision 33:115aa467b4fa, committed 2016-05-10
- Comitter:
- Jacinta
- Date:
- Tue May 10 11:19:21 2016 +0000
- Parent:
- 32:6e0266e7f205
- Commit message:
- .
Changed in this revision
expansionBoard.cpp | Show annotated file Show diff for this revision Revisions of this file |
mailBox.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 6e0266e7f205 -r 115aa467b4fa expansionBoard.cpp --- a/expansionBoard.cpp Mon May 09 20:18:58 2016 +0000 +++ b/expansionBoard.cpp Tue May 10 11:19:21 2016 +0000 @@ -56,7 +56,7 @@ char buffer1[32], buffer2[32]; int32_t axes[3]; - log_data *log_d = mail_box.alloc(); + log_data *log_d = (log_data*)mail_box.alloc(); //TODO Too small!? log_d->id = rand() % 255; @@ -92,11 +92,11 @@ //log_d->date = asctime(localtime()); //Send pointer to the queue - osStatus stat = mail_box.put(log_d); + osStatus *stat = (osStatus*)mail_box.put(log_d); count++; // Check for resource error - if (stat == osErrorResource) { + if (stat == osErrorResource.osStatus) { printf("mail_box->put() Error %4Xh", stat); //Error, free up memory block mail_box.free(log_d);
diff -r 6e0266e7f205 -r 115aa467b4fa mailBox.cpp --- a/mailBox.cpp Mon May 09 20:18:58 2016 +0000 +++ b/mailBox.cpp Tue May 10 11:19:21 2016 +0000 @@ -1,7 +1,7 @@ #include "mbed.h" #include "rtos.h" -#define QUEUESIZE 100 +#define QUEUESIZE 120 typedef struct { uint8_t id;