
Software Architecture
Simple Media Access Controller (SMAC) for the HCS08 Reference Manual, Rev. 2.0
2-2
Freescale Semiconductor
2.2
Hardware Support
This section describes the SMAC hardware support for the MCU, transceiver, antenna switch, and LNA.
The SMAC can be easily ported to any MCU, as long as the system requirements are met. To port to
another MCU, perform the following tasks:
1. Remove the
mc9s08gb60.c/mc9sqe128.c/mc1323c.c
file from the BeeKit project.
2. Add the specific c support file for the required MCU
3. Update the linker file (
.prm
file)
4. Update the
derivative.h
file to include the specific header file
5. Update the SMAC lower layers (MCU and SPI configuration files)
6. Update the application drivers (such as SCI, LED, KBI, etc.)
The SMAC supports the following Freescale transceiver families:
•
MC1320x
•
MC1321x
•
MC1323x, including MC13233 and MC13234
The changes required in the software to support any of the Freescale transceivers are generated
automatically by BeeKit after exporting a solution with the projects correctly configured. For more
information on exporting projects, see the
BeeKit Wireless Connectivity Toolkit User’s Guide
(BKWCTKUG), and the BeeKit on-line help.
SMAC projects support different target boards (those available in Freescale ZigBee kits) in the files. But
it is easy to port an SMAC application from a standard target to a custom target by using the Platform
Editor Wizard in Beekit.
The SMAC contains support for hardware that is controlled by GPIOs configured at the target board
header file: These hardware options are as follows:
•
External Antenna Switch
•
LNA
•
PA
For the External Antenna Switch, SMAC supports the following configurations:
•
For the MC1320x and MC1321x transceivers, a single antenna using an external antenna switch
controlled by an MCU GPIO pin.
•
For MC1320x and MC1321x transceivers, a single antenna using an external antenna switch
controlled by the BT_Bias pin of the transceiver.
•
For MC1320x and MC1321x transceivers, a single antenna using the internal antenna switch.
2.3
SMAC Data Types
The following list shows the fundamental data types and the naming convention used in SMAC:
uint8_t
Unsigned 8 bit definition
uint16_t
Unsigned 16 bit definition