Jorge Abraham Massih Vargas
/
proyecto_final
Earthquake detector
Revision 4:16b60914d174, committed 2019-07-26
- Comitter:
- Alvaro13
- Date:
- Fri Jul 26 00:44:25 2019 +0000
- Parent:
- 3:371e35f9769a
- Commit message:
- el main() anterior ahora es medicion(); se creo un nuevo main() con la inicializacion del thread
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 371e35f9769a -r 16b60914d174 main.cpp --- a/main.cpp Fri Jul 26 00:14:54 2019 +0000 +++ b/main.cpp Fri Jul 26 00:44:25 2019 +0000 @@ -14,12 +14,17 @@ // Threads Thread sampleAccelero(); Thread printDebug(); - + +//Mutex +Mutex semaforo; + +//Mailbox +Mail<float, 1> mail_box; -int main() { +void medicion() { pc.baud(9600); @@ -56,3 +61,8 @@ } } + +int main() +{ + sampleAccelero.start(medicion); +}