![](/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@128:3ae1c74773a8, 2015-05-25 (annotated)
- Committer:
- klauss
- Date:
- Mon May 25 13:11:00 2015 +0000
- Revision:
- 128:3ae1c74773a8
- Parent:
- 126:1f90756250fb
- Child:
- 132:05cd37f7e007
Merge com as funcionalidade de monitoramento de bateria
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
klauss | 121:ee02790d00b7 | 1 | #ifndef __MAIN_APP_VAR_CONFIGS_H__ |
klauss | 121:ee02790d00b7 | 2 | #define __MAIN_APP_VAR_CONFIGS_H__ |
klauss | 120:770f00554b1e | 3 | |
klauss | 128:3ae1c74773a8 | 4 | #include "fw.h" |
klauss | 120:770f00554b1e | 5 | #include "eth.h" |
klauss | 120:770f00554b1e | 6 | #include "bits.h" |
klauss | 120:770f00554b1e | 7 | #include "utils.h" |
klauss | 120:770f00554b1e | 8 | #include "debug.h" |
klauss | 120:770f00554b1e | 9 | #include "flood.h" |
klauss | 128:3ae1c74773a8 | 10 | #include "sdram.h" |
klauss | 128:3ae1c74773a8 | 11 | #include "clock.h" |
klauss | 120:770f00554b1e | 12 | #include "prompt.h" |
klauss | 120:770f00554b1e | 13 | #include "configs.h" |
klauss | 120:770f00554b1e | 14 | #include "bootloader.h" |
klauss | 128:3ae1c74773a8 | 15 | #include "sip_manager.h" |
klauss | 128:3ae1c74773a8 | 16 | #include "wdt_manager.h" |
klauss | 128:3ae1c74773a8 | 17 | #include "parallelcpld.h" |
klauss | 128:3ae1c74773a8 | 18 | #include "call_manager.h" |
klauss | 128:3ae1c74773a8 | 19 | #include "UART3Interrupt.h" // for RXBuffer[ CB_BUFFER_SIZE ]; |
klauss | 128:3ae1c74773a8 | 20 | #include "call_box_manager.h" |
klauss | 128:3ae1c74773a8 | 21 | #include "shared_variables.h" |
klauss | 128:3ae1c74773a8 | 22 | #include "config_var_default.h" |
klauss | 121:ee02790d00b7 | 23 | #include "file_system_manager.h" |
klauss | 128:3ae1c74773a8 | 24 | #include "power_source_monitoring.h" |
klauss | 120:770f00554b1e | 25 | |
klauss | 120:770f00554b1e | 26 | extern short int eth_status; |
klauss | 120:770f00554b1e | 27 | |
klauss | 120:770f00554b1e | 28 | extern Timer sync_timer; |
klauss | 121:ee02790d00b7 | 29 | |
klauss | 126:1f90756250fb | 30 | extern Timer test_ts_timer; |
klauss | 126:1f90756250fb | 31 | |
klauss | 120:770f00554b1e | 32 | extern Timer led_sync_timer; |
klauss | 120:770f00554b1e | 33 | |
klauss | 120:770f00554b1e | 34 | /* representa ramal do call box */ |
klauss | 120:770f00554b1e | 35 | extern int ext; |
klauss | 120:770f00554b1e | 36 | |
klauss | 120:770f00554b1e | 37 | /* representa porta do call box */ |
klauss | 120:770f00554b1e | 38 | extern int port; |
klauss | 120:770f00554b1e | 39 | |
klauss | 120:770f00554b1e | 40 | /* buffer para onde se copia os dados vindos do cb para tratameno interno */ |
klauss | 120:770f00554b1e | 41 | extern uint8_t buffer[ CB_BUFFER_SIZE ]; |
klauss | 120:770f00554b1e | 42 | |
klauss | 120:770f00554b1e | 43 | /* buffer de escrita do pacote de saida que sera enviado pro cb / servidor */ |
klauss | 120:770f00554b1e | 44 | extern uint8_t write_buffer[ CB_BUFFER_SIZE ]; |
klauss | 120:770f00554b1e | 45 | |
klauss | 120:770f00554b1e | 46 | /* ponteiro que aponta para os dados vindo do CPLD */ |
klauss | 120:770f00554b1e | 47 | extern uint8_t * buffer_from_cb_ptr; |
klauss | 120:770f00554b1e | 48 | |
klauss | 120:770f00554b1e | 49 | /* Armazena o ultimo pacote recebido dos CBx */ |
klauss | 120:770f00554b1e | 50 | extern uint8_t cb_rx_buffer[ CB_BUFFER_SIZE ]; |
klauss | 120:770f00554b1e | 51 | |
klauss | 120:770f00554b1e | 52 | /* referencia para os dados contidos no pacote, sem o header */ |
klauss | 120:770f00554b1e | 53 | extern uint8_t * data; |
klauss | 120:770f00554b1e | 54 | |
klauss | 120:770f00554b1e | 55 | /* gerencia o tipo do pacote para providenciar tratamento adequado */ |
klauss | 120:770f00554b1e | 56 | extern volatile uint8_t type; |
klauss | 120:770f00554b1e | 57 | |
klauss | 120:770f00554b1e | 58 | /* representa a lista dos Call Boxes atualmente recfonhecidos pela cabeceira */ |
klauss | 120:770f00554b1e | 59 | extern Vector * v_cb; |
klauss | 120:770f00554b1e | 60 | |
klauss | 120:770f00554b1e | 61 | /* representa a lista de ligacoes ativas na cabeceira */ |
klauss | 120:770f00554b1e | 62 | extern Vector * v_call; |
klauss | 120:770f00554b1e | 63 | |
klauss | 120:770f00554b1e | 64 | /* gerencia a distribuicao de timeslice para os call boxes */ |
klauss | 120:770f00554b1e | 65 | extern Timeslice * ts; |
klauss | 120:770f00554b1e | 66 | |
klauss | 120:770f00554b1e | 67 | extern uint8_t count; |
klauss | 120:770f00554b1e | 68 | |
klauss | 120:770f00554b1e | 69 | extern uint8_t max_registered_cbx; |
klauss | 120:770f00554b1e | 70 | |
klauss | 120:770f00554b1e | 71 | extern uint16_t pkg_wdt; |
klauss | 120:770f00554b1e | 72 | |
klauss | 120:770f00554b1e | 73 | extern uint16_t eth_wdt; |
klauss | 120:770f00554b1e | 74 | |
klauss | 120:770f00554b1e | 75 | extern Timer invite_retry_timer; |
klauss | 120:770f00554b1e | 76 | |
klauss | 120:770f00554b1e | 77 | extern volatile u16_t lpc_low_level_input_counter; |
klauss | 121:ee02790d00b7 | 78 | |
klauss | 124:c1b6c893e1c3 | 79 | extern Timer hello_sync; |
klauss | 124:c1b6c893e1c3 | 80 | |
klauss | 124:c1b6c893e1c3 | 81 | extern uint8_t hello_times; |
klauss | 124:c1b6c893e1c3 | 82 | |
klauss | 120:770f00554b1e | 83 | #endif |