<< Chapter < Page | Chapter >> Page > |
Texas Instruments has developed a set of drivers for the eZ430-RF2500 as part of the simpliciTI project, freely available online . You will use them without changing the files.
If you want to create your own project, you need to take the following steps to include the drivers:
Project>Options
(Alt+F7) , then to C/C++ compiler. In the
Preprocessor
tab, add the following lines in the
Additional include directories
text field. This tells IAR to look into these folders when you include files in your
source code.
$PROJ_DIR$\..\drivers\bsp
$PROJ_DIR$\..\drivers\bsp\drivers$PROJ_DIR$\..\drivers\bsp\boards\EZ430RF
$PROJ_DIR$\..\drivers\mrfi
defined symbols
text field, add the following line. This tells the drivers
you have a CC2500 radio chip on your board.
MRFI_CC2500
Add, Add Group...
to make the following group structure (where groups
bsp
and
mrfi
are inside group
Components
):
Application
Components- bsp
- mrfiOutput
Add, Add Files...
to add files
bsp.c
,
bsp.h
and
bsp_macros.h
under group
bsp
. Similarly, add files
mrfi.c
,
mrfi.h
and
mrfi_defs.h
under group
mrfi
. Add your C code as a file under group
Application
.For your convenience, you can download the entire
source code for the labs in this collection, organized in IAR projects. Open
source_code/iar_v4.11.lab_ezwsn.eww
and browse through the different projects in the
Workspace
panel on the left.
Notification Switch
Would you like to follow the 'Ezwsn: experimenting with wireless sensor networks using the ez430-rf2500' conversation and receive update notifications?