![](/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@54:448d57291be6, 2014-10-22 (annotated)
- Committer:
- klauss
- Date:
- Wed Oct 22 13:53:49 2014 +0000
- Revision:
- 54:448d57291be6
- Parent:
- 53:bb492a8f115a
- Child:
- 55:2f5e7374af9d
set_ip -- ok
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
klauss | 17:67a6b557eda5 | 1 | #ifndef _PROMPT_H |
klauss | 17:67a6b557eda5 | 2 | #define _PROMPT_H |
klauss | 17:67a6b557eda5 | 3 | |
klauss | 44:cc4996469404 | 4 | #include "mbed.h" |
klauss | 44:cc4996469404 | 5 | #include "stdint.h" |
klauss | 44:cc4996469404 | 6 | #include "configs.h" |
klauss | 44:cc4996469404 | 7 | #include "vz_protocol.h" |
klauss | 44:cc4996469404 | 8 | #include "parallelcpld.h" |
klauss | 44:cc4996469404 | 9 | #include "flood.h" |
klauss | 44:cc4996469404 | 10 | |
klauss | 53:bb492a8f115a | 11 | #define TCP_IDLE_MAX_TIME 45 |
klauss | 44:cc4996469404 | 12 | |
klauss | 27:98f824719d1c | 13 | extern uint8_t debug_sip; |
klauss | 17:67a6b557eda5 | 14 | extern uint8_t debug_alive; |
klauss | 17:67a6b557eda5 | 15 | extern uint8_t debug_prompt; |
klauss | 29:7246460b73f8 | 16 | extern uint8_t debug_vector; |
klauss | 30:8dfb6d8de53d | 17 | extern uint8_t debug_cb; |
klauss | 31:bb5fb28a77df | 18 | extern uint8_t debug_main; |
klauss | 31:bb5fb28a77df | 19 | extern uint8_t debug_cks; |
klauss | 31:bb5fb28a77df | 20 | extern uint8_t debug_cb_rx; |
klauss | 31:bb5fb28a77df | 21 | extern uint8_t debug_cb_tx; |
klauss | 31:bb5fb28a77df | 22 | extern uint8_t debug_eth_rx; |
klauss | 31:bb5fb28a77df | 23 | extern uint8_t debug_eth_tx; |
klauss | 43:455522f98de5 | 24 | extern uint8_t debug_prompt_eth; |
klauss | 31:bb5fb28a77df | 25 | extern uint8_t debug_file; |
klauss | 29:7246460b73f8 | 26 | |
klauss | 28:94aec56c6329 | 27 | extern uint8_t test_debug; |
klauss | 29:7246460b73f8 | 28 | |
Cola | 22:d2a4b5939115 | 29 | extern uint8_t pcks_s; |
Cola | 24:270b436a1bb0 | 30 | extern uint8_t pshowcb; |
klauss | 17:67a6b557eda5 | 31 | extern uint8_t dog; |
klauss | 17:67a6b557eda5 | 32 | |
klauss | 28:94aec56c6329 | 33 | extern FILE *fmask; // mascara de rede |
klauss | 28:94aec56c6329 | 34 | extern FILE *fgate; // gateway ip |
klauss | 28:94aec56c6329 | 35 | |
klauss | 28:94aec56c6329 | 36 | extern FILE *fip; // header ip |
klauss | 28:94aec56c6329 | 37 | extern FILE *fext; // header ext |
klauss | 28:94aec56c6329 | 38 | extern FILE *fport; // header sip port |
klauss | 28:94aec56c6329 | 39 | |
klauss | 28:94aec56c6329 | 40 | extern FILE *fsip; // server sip ip |
klauss | 28:94aec56c6329 | 41 | extern FILE *fserext; // server sip ext |
klauss | 28:94aec56c6329 | 42 | extern FILE *fsport; // server sip port |
klauss | 28:94aec56c6329 | 43 | |
klauss | 45:c80574f24dc3 | 44 | extern FILE *fudpport; |
klauss | 45:c80574f24dc3 | 45 | extern FILE *ftcpport; |
klauss | 45:c80574f24dc3 | 46 | |
klauss | 36:728498a78e1e | 47 | char * prompt_process( char * ethernet_pkg ); |
klauss | 17:67a6b557eda5 | 48 | void init_fsystem(); |
klauss | 43:455522f98de5 | 49 | void init_prompt(); |
klauss | 54:448d57291be6 | 50 | void set_ip( char * new_ip ); |
klauss | 54:448d57291be6 | 51 | void set_header_ext( char * new_header_ext ); |
klauss | 17:67a6b557eda5 | 52 | |
klauss | 38:af5ecd6997ab | 53 | extern bool from_eth; |
klauss | 44:cc4996469404 | 54 | extern bool tcp_session; |
klauss | 45:c80574f24dc3 | 55 | extern TCPSocketServer tcp_server; |
klauss | 45:c80574f24dc3 | 56 | extern TCPSocketConnection tcp_client; |
klauss | 41:69bf7091c2ca | 57 | extern Timer tcp_timer; |
klauss | 45:c80574f24dc3 | 58 | |
klauss | 45:c80574f24dc3 | 59 | extern UDPSocket udp_server; |
klauss | 45:c80574f24dc3 | 60 | extern Endpoint udp_client; |
klauss | 45:c80574f24dc3 | 61 | |
klauss | 44:cc4996469404 | 62 | extern bool from_eth; |
klauss | 44:cc4996469404 | 63 | extern bool udp_request; |
klauss | 44:cc4996469404 | 64 | extern char * debug_buf; |
klauss | 17:67a6b557eda5 | 65 | |
klauss | 48:195c97f12e8e | 66 | extern bool cb_session; |
klauss | 48:195c97f12e8e | 67 | extern bool cb_status; |
klauss | 52:12930cef17c4 | 68 | extern bool reset_cks; |
klauss | 53:bb492a8f115a | 69 | extern bool debug_telemetry; |
klauss | 54:448d57291be6 | 70 | extern bool main_test; |
klauss | 48:195c97f12e8e | 71 | |
klauss | 50:d9b6577a70f5 | 72 | int convert_ext_to_port( int ); |
klauss | 50:d9b6577a70f5 | 73 | |
klauss | 17:67a6b557eda5 | 74 | #endif |