Replaced ROOT_RANK with a macro that allows for other min_hoprankinc parameters than the default. Also made some minor style improvements.
This commit is contained in:
parent
263f7e6ebd
commit
01b7a4f7f2
3 changed files with 16 additions and 24 deletions
|
@ -119,17 +119,17 @@
|
|||
|
||||
#define DAG_RANK(fixpt_rank, dag) ((fixpt_rank) / (dag)->min_hoprankinc)
|
||||
|
||||
/* Rank of a node outside the LLN. */
|
||||
/* Rank of a virtual root node that coordinates DAG root nodes. */
|
||||
#define BASE_RANK 0
|
||||
|
||||
/* Rank of a root node. */
|
||||
#define ROOT_RANK DEFAULT_MIN_HOPRANKINC
|
||||
#define ROOT_RANK(dag) (dag)->min_hoprankinc
|
||||
|
||||
#define INFINITE_RANK 0xffff
|
||||
|
||||
/* Represents 2^n ms. */
|
||||
/* Default alue according to the specification is 3 which
|
||||
means 8 milliseconds - this is not a reasonable value if
|
||||
/* Default value according to the specification is 3 which
|
||||
means 8 milliseconds, but that is an unreasonable value if
|
||||
using power-saving / duty-cycling */
|
||||
#define DEFAULT_DIO_INTERVAL_MIN 12
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue