code de la carte IHM avant les bugs et avant le travail effectué avec Melchior
Dependencies: mbed SerialHalfDuplex SDFileSystem liaison_Bluetooth ident_crac DISCO-F469NI_portrait
Globals/global.h@22:c7763a7ec6c7, 2020-06-26 (annotated)
- Committer:
- gabrieltetar
- Date:
- Fri Jun 26 13:08:54 2020 +0000
- Revision:
- 22:c7763a7ec6c7
- Parent:
- 21:d137ec53c3a9
- Child:
- 24:1a13c998c7ac
IHM VERSION TETAR
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
gabrieltetar | 1:7e925468f9d9 | 1 | #ifndef GLOBAL_H |
gabrieltetar | 1:7e925468f9d9 | 2 | #define GLOBAL_H |
gabrieltetar | 1:7e925468f9d9 | 3 | |
gabrieltetar | 1:7e925468f9d9 | 4 | #include "mbed.h" |
gabrieltetar | 21:d137ec53c3a9 | 5 | |
gabrieltetar | 1:7e925468f9d9 | 6 | #include "ident_crac.h" |
gabrieltetar | 21:d137ec53c3a9 | 7 | #include "constantes.h" |
gabrieltetar | 1:7e925468f9d9 | 8 | |
gabrieltetar | 1:7e925468f9d9 | 9 | #include <CAN.h> |
gabrieltetar | 1:7e925468f9d9 | 10 | #include <DirHandle.h> |
gabrieltetar | 1:7e925468f9d9 | 11 | #include "SDFileSystem.h" |
gabrieltetar | 1:7e925468f9d9 | 12 | #include "conv_data.h" |
gabrieltetar | 21:d137ec53c3a9 | 13 | |
gabrieltetar | 1:7e925468f9d9 | 14 | #include "Instruction.h" |
gabrieltetar | 1:7e925468f9d9 | 15 | #include "Strategie.h" |
gabrieltetar | 1:7e925468f9d9 | 16 | #include "lecture_repertoire.h" |
gabrieltetar | 1:7e925468f9d9 | 17 | #include "SerialHalfDuplex.h" |
gabrieltetar | 1:7e925468f9d9 | 18 | #include "debug.h" |
gabrieltetar | 1:7e925468f9d9 | 19 | #include "Asservissement.h" |
gabrieltetar | 1:7e925468f9d9 | 20 | #include "TS_DISCO_F469NI.h" |
gabrieltetar | 1:7e925468f9d9 | 21 | #include "LCD_DISCO_F469NI.h" |
gabrieltetar | 1:7e925468f9d9 | 22 | #include "fonts.h" |
gabrieltetar | 1:7e925468f9d9 | 23 | #include "F469_GUI.hpp" |
gabrieltetar | 1:7e925468f9d9 | 24 | #include "Evitement.h" |
gabrieltetar | 21:d137ec53c3a9 | 25 | #include "ihm.h" |
gabrieltetar | 21:d137ec53c3a9 | 26 | |
gabrieltetar | 1:7e925468f9d9 | 27 | |
gabrieltetar | 1:7e925468f9d9 | 28 | extern Serial pc; |
gabrieltetar | 21:d137ec53c3a9 | 29 | //extern E_stratGameEtat gameEtat = ETAT_CHECK_CARTES; |
gabrieltetar | 21:d137ec53c3a9 | 30 | //extern T_etat strat_etat_s = INIT; |
gabrieltetar | 1:7e925468f9d9 | 31 | extern CAN can1; |
gabrieltetar | 1:7e925468f9d9 | 32 | extern CAN can2; |
gabrieltetar | 1:7e925468f9d9 | 33 | extern CANMessage msgRxBuffer[SIZE_FIFO]; |
gabrieltetar | 1:7e925468f9d9 | 34 | extern unsigned char FIFO_ecriture; |
gabrieltetar | 1:7e925468f9d9 | 35 | extern char strat_sd[10][SIZE+8]; |
gabrieltetar | 1:7e925468f9d9 | 36 | extern char PATH[10][SIZE+8]; |
gabrieltetar | 1:7e925468f9d9 | 37 | |
gabrieltetar | 19:e70b9d4a319c | 38 | extern signed char nbStrat; |
gabrieltetar | 22:c7763a7ec6c7 | 39 | extern unsigned short flag_check_carte1; |
gabrieltetar | 22:c7763a7ec6c7 | 40 | extern unsigned short flag_check_carte2; |
gabrieltetar | 1:7e925468f9d9 | 41 | extern int ack_bluetooth; |
gabrieltetar | 21:d137ec53c3a9 | 42 | extern unsigned char Cote; |
gabrieltetar | 1:7e925468f9d9 | 43 | extern DigitalOut led1,led2,led3,led4; |
gabrieltetar | 1:7e925468f9d9 | 44 | extern LCD_DISCO_F469NI lcd; |
gabrieltetar | 1:7e925468f9d9 | 45 | extern char cheminFileStart[SIZE+8]; //Le chemin du fichier de strat, utiliser strcpy(cheminFileStart,"/local/strat.txt"); |
gabrieltetar | 1:7e925468f9d9 | 46 | extern short SCORE_GLOBAL; |
gabrieltetar | 1:7e925468f9d9 | 47 | extern short SCORE_PR, SCORE_GR; |
gabrieltetar | 1:7e925468f9d9 | 48 | |
gabrieltetar | 1:7e925468f9d9 | 49 | extern struct S_Instruction strat_instructions[SIZE_BUFFER_FILE]; //La liste des instruction chargé en mémoire |
gabrieltetar | 1:7e925468f9d9 | 50 | extern unsigned char nb_instructions; //Le nombre d'instruction dans le fichier de strategie |
gabrieltetar | 1:7e925468f9d9 | 51 | extern unsigned char actual_instruction;//La ligne de l'instruction en cours d'execution |
gabrieltetar | 1:7e925468f9d9 | 52 | |
gabrieltetar | 1:7e925468f9d9 | 53 | extern unsigned short telemetreDistance; |
gabrieltetar | 1:7e925468f9d9 | 54 | extern char couleur1, couleur2, couleur3; |
gabrieltetar | 1:7e925468f9d9 | 55 | extern unsigned char InversStrat;//Si à 1, indique que l'on part de l'autre cote de la table(inversion des Y) |
gabrieltetar | 1:7e925468f9d9 | 56 | |
gabrieltetar | 1:7e925468f9d9 | 57 | extern unsigned short waitingAckID;//L'id du ack attendu |
gabrieltetar | 1:7e925468f9d9 | 58 | extern unsigned short waitingAckFrom;//La provenance du ack attendu |
gabrieltetar | 1:7e925468f9d9 | 59 | extern char modeTelemetre; // Si à 1, indique que l'on attend une reponse du telemetre |
gabrieltetar | 1:7e925468f9d9 | 60 | extern unsigned short waitingId; |
gabrieltetar | 1:7e925468f9d9 | 61 | |
gabrieltetar | 1:7e925468f9d9 | 62 | extern unsigned char isStopEnable; |
gabrieltetar | 1:7e925468f9d9 | 63 | #endif |