Modularizando o src

Dependencies:   EALib EthernetInterface_vz mbed-rtos mbed

Fork of header_main_colinas_V0-20-09-14 by VZTECH

Revision:
121:ee02790d00b7
Parent:
119:ee6a53069455
Child:
126:1f90756250fb
--- a/prompt.h	Mon May 04 17:25:29 2015 +0000
+++ b/prompt.h	Fri May 08 04:15:23 2015 +0000
@@ -9,17 +9,11 @@
 #ifndef _PROMPT_H
 #define _PROMPT_H
 
-#include <stdint.h>
 #include "mbed.h"
-#include "EthernetInterface.h"
-#include "utils.h" // need for convert_ext_to_port()
-#include "flood.h"
 #include "shared_variables.h"
 #include "debug.h"
-#include "wdt_manager.h"
-#include "file_system_manager.h"
-#include "fw.h"
-#include "bootloader.h"
+#include "bits.h"
+#include "flood.h"
 
 const uint8_t PVERSION = 25;
 const uint8_t PROMPT_UDP_COMMAND_SIZE = 64;
@@ -31,28 +25,17 @@
 const uint16_t TCP_ALIVE_IDLE_MAX_TIME = 360;
 ///< Define o tempo maximo de espera por um novo comando via eth dado que já estamos em uma sessão TCP e a flag tcp_alive esta on.
 
-const uint16_t  DEBUGBUFSIZE = PROMPT_ETH_BUFFER_SIZE;
+const uint16_t PROMPT_ETH_BUFFER_SIZE = 1024;
+///< Representa o tamanho máximo do pacote recebido pelo prompt da Header.
+
+const uint16_t DEBUGBUFSIZE = PROMPT_ETH_BUFFER_SIZE;
 ///< Define o tamanho do buffer de entrada de dados.
 
 extern uint8_t dog;
 ///< Variável de controle que ativa a mensagem de boas vindas.
 
-extern FILE *fmask;         ///< arquivo de mascara de rede
-extern FILE *fgate;         ///< arquivo de gateway ip
-
-extern FILE *fip;           ///< arquivo de header ip
-extern FILE *fext;          ///< arquivo de header ext
-extern FILE *fport;         ///< arquivo de header sip port
+extern bool flood_silence;
 
-extern FILE *fsip;          ///< arquivo de server sip ip
-extern FILE *fserext;       ///< arquivo de server sip ext
-extern FILE *fsport;        ///< arquivo de server sip port
-
-extern FILE *fudpport;      ///< arquivo de porta udp que a header escuta
-extern FILE *ftcpport;      ///< arquivo de porta tcp que a header escuta
-extern FILE *fshift_port;
-
-extern bool flood_silence;
 extern bool delayed_flood;
 ///< Variável de controle do envio de pacotes de flood off
 
@@ -79,19 +62,7 @@
  * ...
  * @endcode
  */
-char * prompt_process( char * msg_from_cb, int length );
-
-/**
- * @Synopsis Init file system and check if files exist
- *
- * Exemplo:
- * @code
- * ...
- *  init_fsystem();
- * ...
- * @endcode
- */
-int init_fsystem();
+char * prompt_process ( char * msg_from_cb, int length );
 
 /**
  * @Synopsis Inicializa o prompt e os sockets de conexão eth
@@ -103,7 +74,7 @@
  * ...
  * @endcode
  */
-int init_prompt_eth();
+int init_prompt_eth ( void );
 
 extern char * debug_buf;
 ///< Buffer de entrada dos dados via serial.