![](/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@99:e80850c51106, 2015-01-19 (annotated)
- Committer:
- klauss
- Date:
- Mon Jan 19 18:00:42 2015 +0000
- Revision:
- 99:e80850c51106
- Parent:
- 97:8985817e8847
- Child:
- 100:09a23fcd3bdf
wip header cb tx delay
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 | 99:e80850c51106 | 43 | uint16_t cb_stats_counter = 0; |
klauss | 99:e80850c51106 | 44 | |
klauss | 74:81c47fff88a5 | 45 | uint16_t cb_bye_counter = 0; |
klauss | 74:81c47fff88a5 | 46 | |
klauss | 74:81c47fff88a5 | 47 | uint16_t prompt_counter = 0; |
klauss | 74:81c47fff88a5 | 48 | |
klauss | 79:9bc12aa305a9 | 49 | uint16_t flood_counter = 0; |
klauss | 79:9bc12aa305a9 | 50 | |
klauss | 79:9bc12aa305a9 | 51 | uint16_t out_of_range = 0; |
klauss | 74:81c47fff88a5 | 52 | |
klauss | 74:81c47fff88a5 | 53 | uint16_t bootloader_cbx_counter = 0; |
klauss | 74:81c47fff88a5 | 54 | |
klauss | 80:61d61c9eb75c | 55 | int max_ext = 0; |
klauss | 80:61d61c9eb75c | 56 | |
klauss | 80:61d61c9eb75c | 57 | int min_ext = 0; |
klauss | 80:61d61c9eb75c | 58 | |
klauss | 75:bd3c647b860b | 59 | bool pshowcb = false; |
klauss | 74:81c47fff88a5 | 60 | |
klauss | 81:3656f00ab3db | 61 | uint16_t external_wdt = EXTERN_WDT_IDLE; |
klauss | 81:3656f00ab3db | 62 | |
klauss | 78:1353744f01e1 | 63 | volatile uint8_t status = __WAITING__; |
klauss | 78:1353744f01e1 | 64 | |
klauss | 74:81c47fff88a5 | 65 | Serial pc (USBTX,USBRX); |
klauss | 74:81c47fff88a5 | 66 | |
klauss | 74:81c47fff88a5 | 67 | DigitalOut led1(LED1); |
klauss | 74:81c47fff88a5 | 68 | |
klauss | 74:81c47fff88a5 | 69 | DigitalOut led2(LED2); |
klauss | 74:81c47fff88a5 | 70 | |
klauss | 74:81c47fff88a5 | 71 | DigitalOut led3(LED3); |
klauss | 74:81c47fff88a5 | 72 | |
klauss | 74:81c47fff88a5 | 73 | DigitalOut led4(LED4); |
klauss | 74:81c47fff88a5 | 74 | |
klauss | 81:3656f00ab3db | 75 | DigitalOut CAB_LED(p24); |
klauss | 81:3656f00ab3db | 76 | |
klauss | 85:b6f2dc1d0f4f | 77 | uint32_t missed_pkg = 0; |
klauss | 85:b6f2dc1d0f4f | 78 | uint8_t cb_new_counter = 0; |
klauss | 85:b6f2dc1d0f4f | 79 | uint8_t cb_delete_counter = 0; |
klauss | 85:b6f2dc1d0f4f | 80 | uint8_t sip_new_counter = 0; |
klauss | 85:b6f2dc1d0f4f | 81 | uint8_t sip_delete_counter = 0; |
klauss | 87:679ee0d594a9 | 82 | uint16_t rtp_header_new_counter = 0; |
klauss | 87:679ee0d594a9 | 83 | uint16_t rtp_body_new_counter = 0; |
klauss | 87:679ee0d594a9 | 84 | uint16_t rtp_header_delete_counter = 0; |
klauss | 87:679ee0d594a9 | 85 | uint16_t rtp_body_delete_counter = 0; |
klauss | 91:c2a86b1f8aaa | 86 | uint16_t call_new_counter = 0; |
klauss | 91:c2a86b1f8aaa | 87 | uint16_t call_delete_counter = 0; |
klauss | 87:679ee0d594a9 | 88 | bool memory_is_over = false; |
klauss | 92:92df17f538a8 | 89 | volatile uint16_t received_cpld_pkg = 0; |
klauss | 97:8985817e8847 | 90 | uint16_t sip_socket_send_failure = 0; |
klauss | 99:e80850c51106 | 91 | bool show_sip = false; |
klauss | 99:e80850c51106 | 92 | uint32_t droped_pkg_to_cb = 0; |
klauss | 99:e80850c51106 | 93 | uint32_t cpld_pkg_tx_counter = 0; |
klauss | 99:e80850c51106 | 94 | uint32_t cpld_pkg_rx_counter = 0; |