Modularizando o src

Dependencies:   EALib EthernetInterface_vz mbed-rtos mbed

Fork of header_main_colinas_V0-20-09-14 by VZTECH

Revision:
132:05cd37f7e007
Parent:
122:480c44b0e205
Child:
133:3d136f5ffd66
diff -r 938ab88facae -r 05cd37f7e007 file_system_manager.h
--- a/file_system_manager.h	Tue Jul 21 20:03:35 2015 +0000
+++ b/file_system_manager.h	Tue Sep 01 17:21:11 2015 +0000
@@ -2,9 +2,7 @@
 #define __FILE_SYSTEM_MANAGER_H__
 
 #include "QSPIFileSystem.h"
-#include "debug.h"
-#include "vz_protocol.h"
-#include "fw.h"
+%: include "bits.h"
 
 const uint16_t FILE_BUFFER_SIZE = 1024;
 
@@ -22,11 +20,11 @@
  * ...
  * @endcode
  */
-void set_ip( const char * new_header_ip );
-int get_ip ( char * header_ip, const size_t length );
+int fset_header_ip ( const char * new_header_ip );
+int fget_ip ( char * header_ip, const size_t length );
 
-void set_clock_server_ip ( const char * new_server_ip );
-int get_clock_server_ip ( char * clock_server_ip, const size_t length );
+int fset_clock_server_ip ( const char * new_server_ip );
+int fget_clock_server_ip ( char * clock_server_ip, const size_t length );
 
 /**
  * @Synopsis Altera o valor default contido no arquivo /qspi/myext.txt
@@ -40,8 +38,8 @@
  * ...
  * @endcode
  */
-void set_header_ext ( const int new_header_ext );
-int get_header_ext ( void );
+int fset_header_ext ( const int new_header_ext );
+int fget_header_ext ( void );
 
 /**
  * @Synopsis Altera o valor default contido no arquivo /qspi/mysipport.txt
@@ -55,8 +53,8 @@
  * ...
  * @endcode
  */
-void set_header_sip_port ( const int new_header_sip_port );
-int get_header_sip_port ( void );
+int fset_header_sip_port ( const int new_header_sip_port );
+int fget_header_sip_port ( void );
 
 
 /**
@@ -71,8 +69,8 @@
  * ...
  * @endcode
  */
-void set_server_ip ( const char * new_server_ip );
-int get_server_ip ( char * server_ip, const size_t length );
+int fset_server_ip ( const char * new_server_ip );
+int fget_server_ip ( char * server_ip, const size_t length );
 
 /**
  * @Synopsis Altera o valor default contido no arquivo /qspi/peerext.txt
@@ -86,8 +84,8 @@
  * ...
  * @endcode
  */
-void set_server_ext ( const int new_server_ext );
-int get_server_ext ( void );
+int fset_server_ext ( const int new_server_ext );
+int fget_server_ext ( void );
 
 /**
  * @Synopsis Altera o valor default contido no arquivo /qspi/serverport.txt
@@ -101,8 +99,8 @@
  * ...
  * @endcode
  */
-void set_server_port ( const int new_server_port );
-int get_server_port ( void );
+int fset_server_port ( const int new_server_port );
+int fget_server_port ( void );
 
 /**
  * @Synopsis Altera o valor default contido no arquivo /qspi/udpport.txt
@@ -116,8 +114,8 @@
  * ...
  * @endcode
  */
-void set_udp_port_listener ( const int new_udp_port_listener );
-int get_udp_port_listener ( void );
+int set_udp_port_listener ( const int new_udp_port_listener );
+int fget_udp_port_listener ( void );
 
 /**
  * @Synopsis Altera o valor default contido no arquivo /qspi/tcpport.txt
@@ -131,8 +129,8 @@
  * ...
  * @endcode
  */
-void set_tcp_port_listener ( const int new_tcp_port_listener );
-int get_tcp_port_listener ( void );
+int set_tcp_port_listener ( const int new_tcp_port_listener );
+int fget_tcp_port_listener ( void );
 
 /**
  * @Synopsis Altera o valor default contido no arquivo /qspi/mymask.txt
@@ -146,8 +144,8 @@
  * ...
  * @endcode
  */
-void set_mask( const char * new_mask );
-int get_mask ( char * eth_mask, const size_t length );
+int fset_mask( const char * new_mask );
+int fget_mask ( char * eth_mask, const size_t length );
 
 /**
  * @Synopsis Altera o valor default contido no arquivo /qspi/mygateway.txt
@@ -161,27 +159,27 @@
  * ...
  * @endcode
  */
-void set_gateway ( const char * new_gateway );
-int get_gateway ( char * eth_gw, const size_t length );
+int fset_gateway ( const char * new_gateway );
+int fget_gateway ( char * eth_gw, const size_t length );
 
-void set_max_ext ( const int new_max_ext );
-int get_max_ext ( void );
+int fset_max_ext ( const int new_max_ext );
+int fget_max_ext ( void );
 
-void set_min_ext ( const int new_min_ext );
-int get_min_ext ( void );
+int fset_min_ext ( const int new_min_ext );
+int fget_min_ext ( void );
 
-void cat( const char * fname );
+int cat( const char * fname );
 
-void files( const char type );
+int files( const char type );
 
-void set_fw_ip( const char * new_fw_ip );
-int get_ip ( char * fw_ip, const size_t length );
+int fset_fw_ip ( const char * new_fw_ip );
+int fget_fw_ip ( char * fw_ip, const size_t length );
 
-void set_fw_port ( const int new_fw_port );
-int get_fw_port ( void );
+int fset_fw_port ( const int new_fw_port );
+int fget_fw_port ( void );
 
-void set_shift_port ( const int new_shift_port );
-int get_shift_port ( void );
+int fset_shift_port ( const int new_shift_port );
+int fget_shift_port ( void );
 
 int init_fsystem ( void );