<< 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:

  • In IAR, create a new project as instructed in Section 3.1 .
  • Go to 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
  • In the defined symbols text field, add the following line. This tells the drivers you have a CC2500 radio chip on your board. MRFI_CC2500
  • in the Workspace panel, right click on the name of your project, and use Add, Add Group... to make the following group structure (where groups bsp and mrfi are inside group Components ): Application Components- bsp - mrfiOutput
  • use 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.

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Ezwsn: experimenting with wireless sensor networks using the ez430-rf2500. OpenStax CNX. Apr 26, 2009 Download for free at http://cnx.org/content/col10684/1.10
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Ezwsn: experimenting with wireless sensor networks using the ez430-rf2500' conversation and receive update notifications?

Ask