Introduction to Examples Provided with CC2420DB
To develop software for the CC2420DB three tools are needed.
1. A text editor, e.g. UltraEdit-32 with support for syntax highlighting and running a
compiler
2. A compiler/assembler/linker, e.g. WinAVR. The WinAVR is a suite of open source
software development tools for the Atmel AVR series of RISC microprocessors for
the Windows platform. It includes the GCC compiler for C. This tool provides a
framework for most of the features supported by the Atmega128L microcontroller
used with the CC2420DB Demonstration Board.
3. Software platform provided by the processor manufacturer
Libraries and Examples
The CC2420 libraries and examples include a variety of source files to ease and support the
program development. Besides the standard C libraries, the source/support files are divided
into 4 main groups: Hardware Definition Files, Hardware Abstraction Library, Basic RF library
and finally application example.
Application Example
(source code)
Basic RF Library
Hardware Abstraction Library
Standard C
Libraries
Hardware Definition Files
Rf_blink_led
Rf_basic_send_packet etc
RS232, SPI, ADC, etc.
AVR and CC2420 register
definitions, etc.
Figure 32 Library stack
Hardware Definition Files
The hardware definition files (include files) define the hardware registers in the MCU and the
CC2420. They also include useful macros for the CC2420DB, and all definitions generally
support the C language.
Hardware Abstraction Library (HAL)
To support quick and easy program development Chipcon provides a library of macros and
functions that simplify hardware access on the CC2420. These are located in the Hardware
Abstraction Library (HAL) and implement a hardware abstraction interface for the user
program. As a result the user program can access the microcontroller peripherals, etc. via
function/macro calls, without specific knowledge about the hardware details.
Chipcon AS
SmartRF
®
CC2420DBK Demonstration Board Kit User Manual
(rev. 1.3) 2004-11-03 Page 45/ 52