![](/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
fw.h@104:62646ef786a3, 2015-02-25 (annotated)
- Committer:
- klauss
- Date:
- Wed Feb 25 18:44:11 2015 +0000
- Revision:
- 104:62646ef786a3
- Parent:
- 99:e80850c51106
- Child:
- 105:a930035b6556
- Remo??o do implementado para bootloader cbx.; - Remo??o do implementado para telemetria.; - Remo??o do implementado ( comentado ) em file_system_manager.cpp; - BUGFIX perda de conex?o serial quando recebido um comando via eth;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
klauss | 99:e80850c51106 | 1 | #ifndef __FW_H__ |
klauss | 99:e80850c51106 | 2 | #define __FW_H__ |
klauss | 99:e80850c51106 | 3 | |
klauss | 99:e80850c51106 | 4 | #include "mbed.h" |
klauss | 99:e80850c51106 | 5 | #include "EthernetInterface.h" |
klauss | 99:e80850c51106 | 6 | #include "vz_protocol.h" // for __CB_BUFFER_SIZE__ |
klauss | 99:e80850c51106 | 7 | #include "utils.h" // for itoa(); |
klauss | 99:e80850c51106 | 8 | #include "debug.h" // for [ en | dis ]able debugs |
klauss | 99:e80850c51106 | 9 | |
klauss | 99:e80850c51106 | 10 | #define __FW_SERVER_IP__ "192.168.120.144" |
klauss | 99:e80850c51106 | 11 | ///< Estabelece o IP default para onde os dados de telemetria são enviados. |
klauss | 99:e80850c51106 | 12 | #define __FW_SERVER_PORT__ 9192 |
klauss | 99:e80850c51106 | 13 | ///< Estabelece a porta default do servidor para onde os dados de telemetria são enviados |
klauss | 99:e80850c51106 | 14 | #define __FW_HEADER_PORT__ 9482 |
klauss | 99:e80850c51106 | 15 | ///< Estabelece a porta default da Header, de onde os pacotes de telemetria são enviados. |
klauss | 99:e80850c51106 | 16 | |
klauss | 99:e80850c51106 | 17 | #define __FW_SIZE__ __CB_BUFFER_SIZE__ |
klauss | 99:e80850c51106 | 18 | |
klauss | 104:62646ef786a3 | 19 | extern uint16_t miss_fw_send_pkg; |
klauss | 99:e80850c51106 | 20 | |
klauss | 99:e80850c51106 | 21 | /** |
klauss | 99:e80850c51106 | 22 | * @Synopsis |
klauss | 99:e80850c51106 | 23 | */ |
klauss | 99:e80850c51106 | 24 | void init_fw_handler( void ); |
klauss | 99:e80850c51106 | 25 | |
klauss | 99:e80850c51106 | 26 | /** |
klauss | 99:e80850c51106 | 27 | * @Synopsis |
klauss | 99:e80850c51106 | 28 | */ |
klauss | 99:e80850c51106 | 29 | void re_start_fw( void ); |
klauss | 99:e80850c51106 | 30 | |
klauss | 99:e80850c51106 | 31 | void fw_cbx_pkg( int ext, int port, char * data ); |
klauss | 99:e80850c51106 | 32 | |
klauss | 99:e80850c51106 | 33 | extern UDPSocket fw_sock; |
klauss | 99:e80850c51106 | 34 | ///< Canal de entrada/saida de dados entre Header/Server |
klauss | 99:e80850c51106 | 35 | extern Endpoint fw_server; |
klauss | 99:e80850c51106 | 36 | ///< Representação do link com o server pro qual os pacotes são enviados. |
klauss | 99:e80850c51106 | 37 | |
klauss | 99:e80850c51106 | 38 | #endif |