SJSU One API
Main Page
Modules
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
×
Search Results
firmware
default
lib
L4_IO
wireless
src
mesh_config.h
Go to the documentation of this file.
1
/*
2
* SocialLedge.com - Copyright (C) 2013
3
*
4
* This file is part of free software framework for embedded processors.
5
* You can use it and/or distribute it as long as this copyright header
6
* remains unmodified. The code is free for personal use and requires
7
* permission to use in a commercial product.
8
*
9
* THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED
10
* OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
11
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE.
12
* I SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR
13
* CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
14
*
15
* You can reach the author of this software at :
16
* p r e e t . w i k i @ g m a i l . c o m
17
*/
18
24
#ifndef MESH_CONFIG_H__
25
#define MESH_CONFIG_H__
26
#ifdef __cplusplus
27
extern
"C"
{
28
#endif
29
30
31
61
#define MESH_VERSION 3
62
67
#define MESH_PAYLOAD 32
68
86
#define MESH_MAX_NODES 4
87
97
#define MESH_MAX_PEND_PKTS 2
98
123
#define MESH_ACK_TIMEOUT_MS 8
124
#define MESH_PKT_DISC_TIMEOUT_MS 4
125
#define MESH_RTE_DISCOVERY_HOPS 3
126
131
#define MESH_BROADCAST_ADDR 0xFF
132
#define MESH_ZERO_ADDR 0x00
133
142
#define MESH_USE_STATISTICS 1
143
147
#if 0
148
#include <stdio.h>
149
#include <time.h>
150
#define MESH_DEBUG_PRINTF(X,...) printf(" %li: " X "\n", time(NULL)%100, ##__VA_ARGS__)
151
#elif 0
152
#include <stdio.h>
153
#include "
lpc_sys.h
"
154
#define MESH_DEBUG_PRINTF(X, p...) printf(" " X " (%u)\n", ##p, (unsigned int)sys_get_uptime_ms())
155
#endif
156
161
#define MESH_INCLUDE_TESTS 0
162
163
164
165
#ifdef __cplusplus
166
}
167
#endif
168
#endif
/* MESH_CONFIG_H__ */
lpc_sys.h
Provides the following system services :
Generated by
1.8.11