TI-RTOS Drivers  tidrivers_full_2_20_00_08
Data Fields
UDMACC3200_HWAttrs Struct Reference

UDMACC3200 Hardware attributes. More...

#include <UDMACC3200.h>

Data Fields

void * controlBaseAddr
 
UDMACC3200_ErrorFxn dmaErrorFxn
 
uint8_t intNum
 
uint8_t intPriority
 

Detailed Description

UDMACC3200 Hardware attributes.

This structure contains the base address of the uDMA control table, and uDMA error interrupt attributes.

The control table is used by the uDMA controller to store channel control structures. The control table can be located anywhere in system memory, but must be contiguous and aligned on a 1024-byte boundary.

dmaErrorFxn is the uDMA peripheral's error interrupt handler.

intPriority is priority of the uDMA peripheral's error interrupt, as defined by the underlying OS. It is passed unmodified to the underlying OS's interrupt handler creation code, so you need to refer to the OS documentation for usage. For example, for SYS/BIOS applications, refer to the ti.sysbios.family.arm.m3.Hwi documentation for SYS/BIOS usage of interrupt priorities. If the driver uses the ti.drivers.ports interface instead of making OS calls directly, then the HwiP port handles the interrupt priority in an OS specific way. In the case of the SYS/BIOS port, intPriority is passed unmodified to Hwi_create().

A sample structure is shown below:

#include <driverlib/udma.h>
#if defined(__TI_COMPILER_VERSION__)
#pragma DATA_ALIGN(dmaControlTable, 1024)
#elif defined(__IAR_SYSTEMS_ICC__)
#pragma data_alignment=1024
#elif defined(__GNUC__)
__attribute__ ((aligned (1024)))
#endif
static tDMAControlTable dmaControlTable[64];
UDMACC3200_Object udmaCC3200Object;
const UDMACC3200_HWAttrs udmaCC3200HWAttrs = {
.controlBaseAddr = (void *)dmaControlTable,
.dmaErrorFxn = UDMACC3200_errorFxn,
.intNum = INT_UDMAERR,
.intPriority = (~0)
};

Field Documentation

void* UDMACC3200_HWAttrs::controlBaseAddr

uDMA control registers base address

UDMACC3200_ErrorFxn UDMACC3200_HWAttrs::dmaErrorFxn

uDMA error interrupt handler

uint8_t UDMACC3200_HWAttrs::intNum

uDMA error interrupt number

uint8_t UDMACC3200_HWAttrs::intPriority

uDMA error interrupt priority.


The documentation for this struct was generated from the following file:
Copyright 2016, Texas Instruments Incorporated