Exemple fait en classe th4 du cours 247-637 (2017)
main.cpp@0:669a6bff2494, 2017-09-15 (annotated)
- Committer:
- YROY2004
- Date:
- Fri Sep 15 20:02:05 2017 +0000
- Revision:
- 0:669a6bff2494
2017-08 247-637 Exemple fait en classe lors du cours th4
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| YROY2004 | 0:669a6bff2494 | 1 | #include "mbed.h" |
| YROY2004 | 0:669a6bff2494 | 2 | |
| YROY2004 | 0:669a6bff2494 | 3 | #include "processusUART.h" |
| YROY2004 | 0:669a6bff2494 | 4 | #include "processusExemple.h" |
| YROY2004 | 0:669a6bff2494 | 5 | #include "processusBouton.h" |
| YROY2004 | 0:669a6bff2494 | 6 | |
| YROY2004 | 0:669a6bff2494 | 7 | |
| YROY2004 | 0:669a6bff2494 | 8 | |
| YROY2004 | 0:669a6bff2494 | 9 | void initialiseMain(void) |
| YROY2004 | 0:669a6bff2494 | 10 | { |
| YROY2004 | 0:669a6bff2494 | 11 | initialiseUART(); |
| YROY2004 | 0:669a6bff2494 | 12 | initialiseBouton(); |
| YROY2004 | 0:669a6bff2494 | 13 | initialiseExemple(); |
| YROY2004 | 0:669a6bff2494 | 14 | } |
| YROY2004 | 0:669a6bff2494 | 15 | |
| YROY2004 | 0:669a6bff2494 | 16 | |
| YROY2004 | 0:669a6bff2494 | 17 | int main() |
| YROY2004 | 0:669a6bff2494 | 18 | { |
| YROY2004 | 0:669a6bff2494 | 19 | while(1) { |
| YROY2004 | 0:669a6bff2494 | 20 | wait(1); |
| YROY2004 | 0:669a6bff2494 | 21 | gereBouton(); |
| YROY2004 | 0:669a6bff2494 | 22 | gereExemple(); |
| YROY2004 | 0:669a6bff2494 | 23 | gereUART(); |
| YROY2004 | 0:669a6bff2494 | 24 | } |
| YROY2004 | 0:669a6bff2494 | 25 | } |