AN2773 Freescale Semiconductor / Motorola, AN2773 Datasheet - Page 5

no-image

AN2773

Manufacturer Part Number
AN2773
Description
Switch Demonstration For the 802.15.4 and Zigbee MAC Layer
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
4
The source code for the Switch Demonstration application is provided in the 802.15.4 and Zigbee
Evaluation Kit (EVK) software package. To access the source files, it is recommended that users open the
project file for CodeWarrior (EVK_Switch_demonstration.mcp). This file is found under the MCP
directory at the chosen install path. The Switch Demonstration consists of two main components:
4.1
Figure 2
Freescale Semiconductor
1. The libraries of the MAC and PHY layer. These are compiled for the target hardware and can not
2. The source code for the Switch Demonstration application. This can be changed or replaced by
1. 802.15.4_Libs — A Pre-compiled MAC/PHY library for the specified PCB/HW. The MAC lib is
2. 802.15.4_Headers — These are the header files for the provided libraries.
3. Libs — These are the libraries other than the PHY and MAC used in the application. One example
4. PTC — The application specific files involve primarily the interfaces to/from the MAC layer and
5. Sys — The system files include the Internal Clock Generator module (ICG.c), Embedded
6. Linker_file — The architecture file includes memory map definitions.
Using the Switch Demonstration
be changed by users.
users.
also precompiled for the different Device types, in this case a FFD (Full Function Device).
is the ansiis.lib provided by Metroworks and the HCS08_Flash_Lib provided by Freescale.
UART. The file naming is maintained for historical reasons. The TestParserNwkMac.c file
handles the interface between the Network layer and the Mac layer. Because the Switch
Demonstration does not have a Network layer to control it, most of the application functionality is
placed in this file. The TestUart.c file contains the UART Interrupt Service Requests (ISR) and
interface functions that provide an interface to the application for receiving/sending messages on
the interface. In the Switch Demonstration, this is included for monitoring purposes only and is
not the intended purpose of the Switch Demonstration application.
Bootloader interface description (embedded_bootloader.c), initialization code, main loop
(main.c), Non-Volatile memory definition (NV_Data.c), and others.
shows the project files. These files are grouped into the following categories:
Project File Overview
Switch Demonstration, Rev. 1.1
Using the Switch Demonstration
5

Related parts for AN2773