Configuration Items - Freescale Semiconductor DSP56800E User Manual

Hide thumbs Also See for DSP56800E:
Table of Contents

Advertisement

#include "qs.h"
#include "spi.h"
The following information may be found in the header file spi.h.
Public Data Structure(s):
None
5.16.2.2

Configuration Items

This section summarizes the symbols used in macro definitions for the static SPI module
configuration by the driver initialization routine. Symbol x in the table should be replaced with the
number of the SPI module e.g. SPI_0_SPDSCR_INIT. Configuration symbols are intended for
the application (project) specific configuration file appconfig.h. See e.g. Example 5-566 for more
details.
SYMBOL
SPIxCHAR
SPI_ x _SPDSCR_INIT
SPI_ x _SPSCR_INIT
MC56F802x/3x only:
SPI_ x _FIFO_INIT
MC56F802x/3x only:
SPI_ x _DELAY_INIT
In addition to standard configuration values described above, the DSP56800E_Quick_Start tool
contains also SPI software interface which enables buffered operations in various configurations.
To enable this built-in software layer, the following configuration items have to be specified in
the appconfig.h file.
SYMBOL
INT_VECTOR_ADDR_yy
yy = SPI0 Receiver Full Interrupt
INT_VECTOR_ADDR_yy
yy = SPI0 Transmitter Empty Interrupt
5-714
Table 5-591. SPI Configuration Items for appconfig.h
TYPE
type name
Specifies the type of single 'character' for buffer operations. The
char or
'UWord16' is default and is backward compatible with HawkV1
UWord16
implementation. The 'char' is the optimal choice for 56F800E
family as it supports arrays or byte-wide elements.
UWord16
Initial value of the SPI Data Size and Control Register.
UWord16
Initial value of the SPI Status and Control Register.
UWord16
Initial value of the SPI FIFO Control Register.
UWord16
Initial value of the SPI Word Delay Register.
Table 5-592. SPI Operation Items for appconfig.h
TYPE
/ VALUE
Spi0RxFullISR
Spi0TxEmptyISR
Targeting 56F8xxx Platform
DESCRIPTION
DESCRIPTION
Name of the built in interrupt service routine imple-
mented in spi.c file.
Name of the built in interrupt service routine imple-
mented in spi.c file.
FREESCALE SEMICONDUCTOR

Advertisement

Table of Contents
loading

Table of Contents