2012-02-02 21:31:28 +01:00
|
|
|
#include <vtimer.h>
|
|
|
|
#include <thread.h>
|
|
|
|
|
2012-02-14 22:22:01 +01:00
|
|
|
#define TRICKLE_TIMER_STACKSIZE 3072
|
2012-03-12 16:22:52 +01:00
|
|
|
//#define TRICKLE_TIMER_STACKSIZE 4096
|
2012-02-14 22:22:01 +01:00
|
|
|
#define TRICKLE_INTERVAL_STACKSIZE 3072
|
2012-02-26 19:30:48 +01:00
|
|
|
//#define DAO_DELAY_STACKSIZE 2048
|
2012-03-12 16:22:52 +01:00
|
|
|
#define DAO_DELAY_STACKSIZE 3072
|
|
|
|
//#define DAO_DELAY_STACKSIZE 4096
|
|
|
|
#define RT_STACKSIZE 512
|
2012-02-02 21:31:28 +01:00
|
|
|
|
2012-01-19 17:35:50 +01:00
|
|
|
void reset_trickletimer(void);
|
2012-02-02 21:31:28 +01:00
|
|
|
void init_trickle(void);
|
|
|
|
void start_trickle(uint8_t DIOINtMin, uint8_t DIOIntDoubl, uint8_t DIORedundancyConstatnt);
|
|
|
|
void trickle_increment_counter(void);
|
|
|
|
void trickle_timer_over(void);
|
|
|
|
void trickle_interval_over(void);
|
2012-02-16 23:23:15 +01:00
|
|
|
void delay_dao(void);
|
|
|
|
void dao_delay_over(void);
|
2012-03-27 17:56:47 +02:00
|
|
|
void dao_ack_received(void);
|
2012-02-26 19:30:48 +01:00
|
|
|
void rt_timer_over(void);
|