41 #include "net/rpl/rpl.h"
42 #include "net/rpl/rpl-private.h"
43 #include "net/mac/tsch/tsch.h"
45 #include "net/mac/tsch/tsch-schedule.h"
46 #include "net/mac/tsch/tsch-log.h"
49 #if TSCH_LOG_LEVEL >= 1
50 #define DEBUG DEBUG_PRINT
52 #define DEBUG DEBUG_NONE
59 tsch_rpl_callback_joining_network(
void)
67 tsch_rpl_callback_leaving_network(
void)
69 rpl_dag_t *dag = rpl_get_any_dag();
71 rpl_local_repair(dag->instance);
78 tsch_rpl_callback_new_dio_interval(uint8_t dio_interval)
81 rpl_dag_t *dag = rpl_get_any_dag();
82 if(dag !=
NULL && dag->rank != INFINITE_RANK) {
84 if(dag->rank == ROOT_RANK(dag->instance)) {
85 tsch_set_coordinator(1);
88 tsch_set_eb_period(TSCH_EB_PERIOD);
90 tsch_set_join_priority(DAG_RANK(dag->rank, dag->instance) - 1);
92 tsch_set_eb_period(0);
99 tsch_rpl_callback_parent_switch(rpl_parent_t *old, rpl_parent_t *
new)
101 if(tsch_is_associated == 1) {
102 tsch_queue_update_time_source(
103 (
const linkaddr_t *)uip_ds6_nbr_lladdr_from_ipaddr(
104 rpl_get_parent_ipaddr(
new)));
Private TSCH definitions (meant for use by TSCH implementation files only) ...
A set of debugging macros for the netstack
#define NULL
The null pointer.