![](/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@78:1353744f01e1, 2014-12-16 (annotated)
- Committer:
- klauss
- Date:
- Tue Dec 16 12:13:01 2014 +0000
- Revision:
- 78:1353744f01e1
- Parent:
- 75:bd3c647b860b
- Child:
- 79:9bc12aa305a9
before meeting
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 | 74:81c47fff88a5 | 47 | uint16_t flood_counter = 0; |
klauss | 74:81c47fff88a5 | 48 | |
klauss | 74:81c47fff88a5 | 49 | uint16_t bootloader_cbx_counter = 0; |
klauss | 74:81c47fff88a5 | 50 | |
klauss | 75:bd3c647b860b | 51 | bool pshowcb = false; |
klauss | 74:81c47fff88a5 | 52 | |
klauss | 78:1353744f01e1 | 53 | volatile uint8_t status = __WAITING__; |
klauss | 78:1353744f01e1 | 54 | |
klauss | 74:81c47fff88a5 | 55 | Serial pc (USBTX,USBRX); |
klauss | 74:81c47fff88a5 | 56 | |
klauss | 74:81c47fff88a5 | 57 | DigitalOut led1(LED1); |
klauss | 74:81c47fff88a5 | 58 | |
klauss | 74:81c47fff88a5 | 59 | DigitalOut led2(LED2); |
klauss | 74:81c47fff88a5 | 60 | |
klauss | 74:81c47fff88a5 | 61 | DigitalOut led3(LED3); |
klauss | 74:81c47fff88a5 | 62 | |
klauss | 74:81c47fff88a5 | 63 | DigitalOut led4(LED4); |
klauss | 74:81c47fff88a5 | 64 | |
klauss | 74:81c47fff88a5 | 65 | DigitalOut CAB_LED(p24); |