![](/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
main_app_var_configs.h
- Committer:
- klauss
- Date:
- 2015-05-04
- Revision:
- 120:770f00554b1e
- Child:
- 121:ee02790d00b7
File content as of revision 120:770f00554b1e:
#ifndef __MAIN_INCLUDES_CONFIGS__ #define __MAIN_INCLUDES_CONFIGS__ #include "eth.h" #include "bits.h" #include "UART3Interrupt.h" // for RXBuffer[ CB_BUFFER_SIZE ]; #include "utils.h" #include "parallelcpld.h" #include "debug.h" #include "flood.h" #include "call_manager.h" #include "call_box_manager.h" #include "sip_manager.h" #include "shared_variables.h" #include "prompt.h" #include "configs.h" #include "sdram.h" #include "fw.h" #include "bootloader.h" #include "clock.h" int header_app_init ( void ); int try_reconnect_with_eth ( void ); int show_stats ( void ); int reset_stats ( void ); int show_cb_list ( Vector * v_cb ); int show_cb_long_list ( Vector * v_cb ); int show_cb ( Vector * v_cb ); int show_cb_sip ( Vector * v_cb ); int show_sizes ( void ); int check_udp_packages_pending ( Vector * v_cb ); int show_cb_content ( void ); int show_cb_content_all ( void ); int show_rtp ( void ); int fuck_rtp ( Vector * v_cb ); int show_hex_cb_content ( void ); int show_hex_cb_content_all ( void ); int show_cB_sip ( void ); int show_cB_sip_all ( void ); int show_cB_hex_sip ( void ); int show_rtp_on_call ( void ); int show_call ( void ); int show_hex_call ( void ); int show_cb_rtp ( void ); int show_cb_hex_rtp ( void ); int reset_stats_cks ( void ); int show_cb_stats ( void ); // zera os contadores de pacotes que resultaram em falha de envio vio ETH int reset_missed_send_udp ( void ); // exibe estatisticas de pacotes que resultaram em falha de envio na interface ETH int show_missed_send_udp_pkg ( void ); int invite_ack_to_cb_handler ( Vector * v_cb, Vector * v_call ); int check_audio_from_ast ( Vector * v_cb, Vector * v_call ); int wake_up_or_refresh_handler ( Vector * v_cb ); int check_sip_messages_from_ast ( Vector * v_cb, Vector * v_call ); /* rotina de verificação de TS's perdidos */ int check_for_runaways_ts ( Vector * v_cb, Timeslice * ts ); int show_wdt_status ( void ); int wdt_update ( void ); /* rotina "zeradora" de portas RTP */ int check_for_unwanted_rtp_ports ( Vector * v_cb ); extern short int eth_status; extern Timer sync_timer; extern Timer led_sync_timer; /* representa ramal do call box */ extern int ext; /* representa porta do call box */ extern int port; /* buffer para onde se copia os dados vindos do cb para tratameno interno */ extern uint8_t buffer[ CB_BUFFER_SIZE ]; /* buffer de escrita do pacote de saida que sera enviado pro cb / servidor */ extern uint8_t write_buffer[ CB_BUFFER_SIZE ]; /* ponteiro que aponta para os dados vindo do CPLD */ extern uint8_t * buffer_from_cb_ptr; /* Armazena o ultimo pacote recebido dos CBx */ extern uint8_t cb_rx_buffer[ CB_BUFFER_SIZE ]; /* referencia para os dados contidos no pacote, sem o header */ extern uint8_t * data; /* gerencia o tipo do pacote para providenciar tratamento adequado */ extern volatile uint8_t type; /* representa a lista dos Call Boxes atualmente recfonhecidos pela cabeceira */ extern Vector * v_cb; /* representa a lista de ligacoes ativas na cabeceira */ extern Vector * v_call; /* gerencia a distribuicao de timeslice para os call boxes */ extern Timeslice * ts; extern uint8_t count; extern uint8_t max_registered_cbx; extern bool wake_all; extern uint16_t pkg_wdt; extern uint16_t eth_wdt; extern Timer invite_retry_timer; extern volatile u16_t lpc_low_level_input_counter; #endif