![](/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@109:a5b8264ffbbc, 2015-04-07 (annotated)
- Committer:
- klauss
- Date:
- Tue Apr 07 14:27:44 2015 +0000
- Revision:
- 109:a5b8264ffbbc
- Parent:
- 106:a34fcf9f0e02
- Child:
- 113:db67ae00550e
bl wip
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 | 109:a5b8264ffbbc | 17 | UDPSocket udp_server; |
klauss | 74:81c47fff88a5 | 18 | |
klauss | 109:a5b8264ffbbc | 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 | 109:a5b8264ffbbc | 33 | uint16_t boot_counter = 0; |
klauss | 74:81c47fff88a5 | 34 | |
klauss | 109:a5b8264ffbbc | 35 | uint16_t registry_counter = 0; |
klauss | 74:81c47fff88a5 | 36 | |
klauss | 109:a5b8264ffbbc | 37 | uint16_t invite_counter = 0; |
klauss | 74:81c47fff88a5 | 38 | |
klauss | 109:a5b8264ffbbc | 39 | uint16_t audio_counter = 0; |
klauss | 74:81c47fff88a5 | 40 | |
klauss | 109:a5b8264ffbbc | 41 | uint16_t telemetry_counter = 0; |
klauss | 99:e80850c51106 | 42 | |
klauss | 109:a5b8264ffbbc | 43 | uint16_t cb_stats_counter = 0; |
klauss | 74:81c47fff88a5 | 44 | |
klauss | 109:a5b8264ffbbc | 45 | uint16_t cb_bye_counter = 0; |
klauss | 74:81c47fff88a5 | 46 | |
klauss | 109:a5b8264ffbbc | 47 | uint16_t prompt_counter = 0; |
klauss | 79:9bc12aa305a9 | 48 | |
klauss | 109:a5b8264ffbbc | 49 | uint16_t flood_counter = 0; |
klauss | 74:81c47fff88a5 | 50 | |
klauss | 109:a5b8264ffbbc | 51 | uint16_t out_of_range = 0; |
klauss | 105:a930035b6556 | 52 | |
klauss | 109:a5b8264ffbbc | 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 | 100:09a23fcd3bdf | 92 | uint32_t delayed_pkg_to_cb = 0; |
klauss | 99:e80850c51106 | 93 | uint32_t cpld_pkg_tx_counter = 0; |
klauss | 104:62646ef786a3 | 94 | uint32_t cpld_pkg_rx_counter = 0; |
klauss | 109:a5b8264ffbbc | 95 | int print_this_cb = 0; |
klauss | 109:a5b8264ffbbc | 96 | int print_hex_this_cb = 0; |
klauss | 109:a5b8264ffbbc | 97 | int print_this_sip = 0; |
klauss | 109:a5b8264ffbbc | 98 | int print_hex_this_sip = 0; |
klauss | 109:a5b8264ffbbc | 99 | int print_this_call = 0; |
klauss | 109:a5b8264ffbbc | 100 | int print_hex_this_call = 0; |
klauss | 109:a5b8264ffbbc | 101 | int print_this_rtp = 0; |
klauss | 109:a5b8264ffbbc | 102 | int print_hex_this_rtp = 0; |
klauss | 109:a5b8264ffbbc | 103 | int frtp_target = 0; |
klauss | 109:a5b8264ffbbc | 104 | int rescue_rtp_target = 0; |
klauss | 109:a5b8264ffbbc | 105 | int rescue_rtp_value = 0; |