Atmel AVR2131: Lightweight Mesh Getting Started Guide [APPLICATION NOTE]
42029A
−
AVR
−
09/2012
7
Table 6-2. Required include paths.
Platform
Include Paths
Common for all platforms
<SDK Root>\nwk\inc
<SDK Root>\sys\inc
<Application Root> (required to locate
config.h
file)
ZigBit
<SDK Root>\hal\atmega1281\inc
<SDK Root>\phy\at86rf230\inc
STK600-mega128rfa1,
RCB128RFA1
<SDK Root>\hal\atmega128rfa1\inc
<SDK Root>\phy\atmega128rfa1\inc
RCB231
<SDK Root>\hal\atmega1281\inc
<SDK Root>\phy\at86rf231\inc
Table 6-3. Required definitions.
Platform
Definitions
Common for all platforms
F_CPU=<MCU Operating Frequency>
Note that if MCU frequency is different from the supported by default then you may need to
change frequency depended code in the
<SDK Root>\hal
directory.
ZigBit
PHY_AT86RF230
HAL_ATMEGA1281
PLATFORM_ZIGBIT
STK600-mega128rfa1,
RCB128RFA1
PHY_ATMEGA128RFA1
HAL_ATMEGA128RFA1
PLATFORM_RCB128RFA1
RCB231
PHY_AT86RF231
HAL_ATMEGA1281
PLATFORM_RCB231
The execution environment should ensure that:
•
SYS_Init() function is called before any other Lightweight Mesh API call
•
SYS_TaskHandler() function is called as often as possible
Note that the
HAL_Init()
function (called from
SYS_Init()
function) will perform low level hardware initialization. If such
initialization already is performed by the existing project environment, then it should be removed from the
HAL_Init()
function.
7.
References
[1]
[2]
[4]
[6]