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: mbed APDS_9960 mbed-rtos
Diff: include/cJeu.h
- Revision:
- 34:3f8df7ccfcbc
- Parent:
- 25:b59758a85ed3
- Child:
- 29:95469b25e187
- Child:
- 36:f58a566595ad
--- a/include/cJeu.h Tue Apr 19 09:47:21 2016 +0000 +++ b/include/cJeu.h Fri Apr 22 11:28:37 2016 +0000 @@ -10,8 +10,12 @@ #include "cCollision.h" #include "cSPI.h" #include "rtos.h" +#include "cmsis_os.h" +#define START_THREAD 1 -#define START_THREAD 1 +typedef struct { + int val; +} message_t; class cJeu { @@ -21,9 +25,9 @@ cForme *_ptrForme; cSPI _spi; unsigned char _score; - cBoussole *_boussole; - unsigned char *_detec; - + unsigned char _detec; + osMessageQId* _queue ; + osPoolId* _pool; //////////////////////////////////////////////////// public: // CONSTRUCTEURS @@ -37,6 +41,8 @@ // SETTERS void set_matrice(cMatrice *mat); void set_score(unsigned char sc); + void setDetec(unsigned char); + void setQueue(osMessageQId*, osPoolId*); // GETTERS cMatrice* get_matrice(); unsigned char get_score(); @@ -48,7 +54,6 @@ void nouvelleManche(); int partieEnCours(); void fin(); - void detectionMouvement(void const *args); }; #endif //JEU_H \ No newline at end of file