background image

 

 

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] 

[3] 

 

[4] 

[5] 

 

[6] 

 

Содержание AVR2131

Страница 1: ...ication note is to introduce users to the Lightweight Mesh network protocol stack and typical application development process from Atmel This document describes how to start quickly with the Lightweig...

Страница 2: ...3 3 WSNDemo sample application 4 4 Using precompiled binaries 4 4 1 Overview 4 4 2 Programming the boards 4 4 3 Running the application 5 5 Using provided projects 5 5 1 Overview 5 5 2 Over the Air up...

Страница 3: ...128B1 AT86RF212 AT86RF231 RCB128RFA1 ATmega128RFA1 ATmega128RFA1 RCB231 ATmega1281 AT86RF231 All demonstrations in this document will use the RCB128RFA1 board 3 and the WSNDemo sample application as a...

Страница 4: ...inator Sensor data values are generated randomly on all platforms Sending data to the nodes on the network is not implemented and not supported in this demo application 4 Using precompiled binaries 4...

Страница 5: ...ettings are listed in Table 5 1 For system settings mentioned in the configuration file see 1 Table 5 1 WSNDemo application settings Parameter Description APP_ADDR Node network address This parameter...

Страница 6: ...nto a larger existing project it is recommended to include all required files and definitions into the existing project Table 6 1 Table 6 2 and Table 6 3 present a lists of files include paths and def...

Страница 7: ...e 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_ATMEG...

Страница 8: ...Atmel AVR2131 Lightweight Mesh Getting Started Guide APPLICATION NOTE 42029A AVR 09 2012 8 8 Revision History Doc Rev Date Comments 42029A 09 2012 Initial document release...

Страница 9: ...h the sale of Atmel products EXCEPT AS SET FORTH IN THE ATMEL TERMS AND CONDITIONS OF SALES LOCATED ON THE ATMEL WEBSITE ATMEL ASSUMES NO LIABILITY WHATSOEVER AND DISCLAIMS ANY EXPRESS IMPLIED OR STAT...

Отзывы: