Modularizando o src

Dependencies:   EALib EthernetInterface_vz mbed-rtos mbed

Fork of header_main_colinas_V0-20-09-14 by VZTECH

Revision:
117:e9facba9db27
Parent:
116:39a41ebb675c
Child:
119:ee6a53069455
--- a/call_box_manager.h	Thu Apr 23 20:24:09 2015 +0000
+++ b/call_box_manager.h	Thu Apr 23 21:53:28 2015 +0000
@@ -10,14 +10,14 @@
 #include "parallelcpld.h"
 #include "utils.h"
 
-const uint8_t __SLEEP_TIME__ = 45;
+#define __SLEEP_TIME__ 45
 
 extern Timer timer_refresh;
 extern Timer timer_aging;
 extern Timer timer_sync_refresh;
 
-const uint8_t TIME_TO_REFRESH = 1;
-const uint8_t TIME_TO_WAKE_UP = 2;
+#define TIME_TO_REFRESH 1
+#define TIME_TO_WAKE_UP 2
 
 /**
  * @Synopsis Busca por um determinado Call_box no vetor de Call_box usando como chave de busca o ramal.
@@ -61,18 +61,14 @@
  * @endcode
  */
  
-int refresh ( Vector * v_cb );
+int refresh( Vector * v_cb, uint8_t * data, uint8_t * write_buffer, Call_Box * cb );
  
-inline void init_refresh ()
-{ 
-    timer_refresh.start(); 
-}
+#define init_refresh(){ timer_refresh.start(); }
+#define init_aging(){ timer_aging.start(); }
+#define init_sync_refresh(){ timer_sync_refresh.start(); }
+ 
+void registry_aging( Vector * v_cb, uint8_t * data, uint8_t * write_buffer );
 
-inline void init_sync_refresh ()
-{ 
-    timer_sync_refresh.start(); 
-}
- 
-void wake_all_up ( Vector * v_cb );
+void wake_all_up( Vector * v_cb, uint8_t * data, uint8_t * write_buffer );
 
 #endif
\ No newline at end of file