![](/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
prompt.h
- Committer:
- klauss
- Date:
- 2014-10-28
- Revision:
- 63:0d95da692bb4
- Parent:
- 62:07e5bdc9f8f7
- Child:
- 65:0b653cfe95db
File content as of revision 63:0d95da692bb4:
#ifndef _PROMPT_H #define _PROMPT_H #include "mbed.h" #include "stdint.h" #include "configs.h" #include "vz_protocol.h" #include "parallelcpld.h" #include "flood.h" #define TCP_IDLE_MAX_TIME 45 #define DEBUGBUFSIZE 50 extern uint8_t debug_sip; extern uint8_t debug_alive; extern uint8_t debug_prompt; extern uint8_t debug_vector; extern uint8_t debug_cb; extern uint8_t debug_main; extern uint8_t debug_cks; extern uint8_t debug_cb_rx; extern uint8_t debug_cb_tx; extern uint8_t debug_eth_rx; extern uint8_t debug_eth_tx; extern uint8_t debug_prompt_eth; extern uint8_t debug_file; extern uint8_t test_debug; extern uint8_t pcks_s; extern uint8_t pshowcb; extern uint8_t dog; extern FILE *fmask; // mascara de rede extern FILE *fgate; // gateway ip extern FILE *fip; // header ip extern FILE *fext; // header ext extern FILE *fport; // header sip port extern FILE *fsip; // server sip ip extern FILE *fserext; // server sip ext extern FILE *fsport; // server sip port extern FILE *fudpport; // porta udp que a header escuta extern FILE *ftcpport; // porta tcp que a header escuta extern FILE *ftip; // IP do servidor para envio de telemetria extern FILE *ftport; // Porta UDP do servidor para envio de telemetria char * prompt_process( char * ethernet_pkg ); void init_fsystem(); void init_prompt(); void set_ip( char * new_header_ip ); void set_header_ext( int new_header_ext ); void set_header_sip_port( int new_header_sip_port ); void set_server_ip( char * new_server_ip ); void set_server_ext( int new_server_ext ); void set_server_port( int new_server_port ); void set_udp_port_listener( int new_udp_port_listener ); void set_tcp_port_listener( int new_tcp_port_listener ); void set_telemetry_ip( char * new_telemetry_ip ); void set_telemetry_port( int new_telemetry_port ); void set_mask( char * new_mask ); void set_gateway( char * new_gateway ); extern bool from_eth; extern bool tcp_session; extern TCPSocketServer tcp_server; extern TCPSocketConnection tcp_client; extern Timer tcp_timer; extern UDPSocket udp_server; extern Endpoint udp_client; extern bool from_eth; extern bool udp_request; extern char * debug_buf; extern bool cb_session; extern bool cb_status; extern bool reset_cks; extern bool debug_telemetry; extern bool main_test; extern bool list; extern bool rx; extern bool tx; extern bool stats; extern bool r_stats; extern uint16_t boot_counter; extern uint16_t registry_counter; extern uint16_t invite_counter; extern uint16_t audio_counter; extern uint16_t telemetry_counter; extern uint16_t cb_bye_counter; extern uint16_t prompt_counter; extern uint16_t flood_counter; int convert_ext_to_port( int ); #endif