![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
Modularizando o src
Dependencies: EALib EthernetInterface_vz mbed-rtos mbed
Fork of header_main_colinas_V0-20-09-14 by
shared_variables.cpp@81:3656f00ab3db, 2014-12-30 (annotated)
- Committer:
- klauss
- Date:
- Tue Dec 30 12:37:40 2014 +0000
- Revision:
- 81:3656f00ab3db
- Parent:
- 80:61d61c9eb75c
- Child:
- 85:b6f2dc1d0f4f
tentando resolver o bug de apertar duas vezes o botao pra fazer uma call
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
klauss | 74:81c47fff88a5 | 1 | #include "shared_variables.h" |
klauss | 74:81c47fff88a5 | 2 | |
klauss | 74:81c47fff88a5 | 3 | bool from_eth = false; |
klauss | 74:81c47fff88a5 | 4 | |
klauss | 74:81c47fff88a5 | 5 | bool tcp_session = false; |
klauss | 74:81c47fff88a5 | 6 | |
klauss | 74:81c47fff88a5 | 7 | bool reset_cks = false; |
klauss | 74:81c47fff88a5 | 8 | |
klauss | 74:81c47fff88a5 | 9 | TCPSocketServer tcp_server; |
klauss | 74:81c47fff88a5 | 10 | |
klauss | 74:81c47fff88a5 | 11 | TCPSocketConnection tcp_client; |
klauss | 74:81c47fff88a5 | 12 | |
klauss | 74:81c47fff88a5 | 13 | Timer udp_timer; |
klauss | 74:81c47fff88a5 | 14 | |
klauss | 75:bd3c647b860b | 15 | bool debug_alive = false; |
klauss | 74:81c47fff88a5 | 16 | |
klauss | 74:81c47fff88a5 | 17 | UDPSocket udp_server; |
klauss | 74:81c47fff88a5 | 18 | |
klauss | 74:81c47fff88a5 | 19 | Endpoint udp_client; |
klauss | 74:81c47fff88a5 | 20 | |
klauss | 75:bd3c647b860b | 21 | bool pcks_s = false; |
klauss | 74:81c47fff88a5 | 22 | |
klauss | 74:81c47fff88a5 | 23 | bool list = false; |
klauss | 74:81c47fff88a5 | 24 | |
klauss | 74:81c47fff88a5 | 25 | bool r_stats; |
klauss | 74:81c47fff88a5 | 26 | |
klauss | 74:81c47fff88a5 | 27 | bool rx = false; |
klauss | 74:81c47fff88a5 | 28 | |
klauss | 74:81c47fff88a5 | 29 | bool tx = false; |
klauss | 74:81c47fff88a5 | 30 | |
klauss | 74:81c47fff88a5 | 31 | bool stats = false; |
klauss | 74:81c47fff88a5 | 32 | |
klauss | 74:81c47fff88a5 | 33 | uint16_t boot_counter = 0; |
klauss | 74:81c47fff88a5 | 34 | |
klauss | 74:81c47fff88a5 | 35 | uint16_t registry_counter = 0; |
klauss | 74:81c47fff88a5 | 36 | |
klauss | 74:81c47fff88a5 | 37 | uint16_t invite_counter = 0; |
klauss | 74:81c47fff88a5 | 38 | |
klauss | 74:81c47fff88a5 | 39 | uint16_t audio_counter = 0; |
klauss | 74:81c47fff88a5 | 40 | |
klauss | 74:81c47fff88a5 | 41 | uint16_t telemetry_counter = 0; |
klauss | 74:81c47fff88a5 | 42 | |
klauss | 74:81c47fff88a5 | 43 | uint16_t cb_bye_counter = 0; |
klauss | 74:81c47fff88a5 | 44 | |
klauss | 74:81c47fff88a5 | 45 | uint16_t prompt_counter = 0; |
klauss | 74:81c47fff88a5 | 46 | |
klauss | 79:9bc12aa305a9 | 47 | uint16_t flood_counter = 0; |
klauss | 79:9bc12aa305a9 | 48 | |
klauss | 79:9bc12aa305a9 | 49 | uint16_t out_of_range = 0; |
klauss | 74:81c47fff88a5 | 50 | |
klauss | 74:81c47fff88a5 | 51 | uint16_t bootloader_cbx_counter = 0; |
klauss | 74:81c47fff88a5 | 52 | |
klauss | 80:61d61c9eb75c | 53 | int max_ext = 0; |
klauss | 80:61d61c9eb75c | 54 | |
klauss | 80:61d61c9eb75c | 55 | int min_ext = 0; |
klauss | 80:61d61c9eb75c | 56 | |
klauss | 75:bd3c647b860b | 57 | bool pshowcb = false; |
klauss | 74:81c47fff88a5 | 58 | |
klauss | 81:3656f00ab3db | 59 | uint16_t external_wdt = EXTERN_WDT_IDLE; |
klauss | 81:3656f00ab3db | 60 | |
klauss | 78:1353744f01e1 | 61 | volatile uint8_t status = __WAITING__; |
klauss | 78:1353744f01e1 | 62 | |
klauss | 74:81c47fff88a5 | 63 | Serial pc (USBTX,USBRX); |
klauss | 74:81c47fff88a5 | 64 | |
klauss | 74:81c47fff88a5 | 65 | DigitalOut led1(LED1); |
klauss | 74:81c47fff88a5 | 66 | |
klauss | 74:81c47fff88a5 | 67 | DigitalOut led2(LED2); |
klauss | 74:81c47fff88a5 | 68 | |
klauss | 74:81c47fff88a5 | 69 | DigitalOut led3(LED3); |
klauss | 74:81c47fff88a5 | 70 | |
klauss | 74:81c47fff88a5 | 71 | DigitalOut led4(LED4); |
klauss | 74:81c47fff88a5 | 72 | |
klauss | 81:3656f00ab3db | 73 | DigitalOut CAB_LED(p24); |
klauss | 81:3656f00ab3db | 74 | |
klauss | 81:3656f00ab3db | 75 | uint32_t missed_pkg = 0; |