Data Fields
UDMAMSP432E4_HWAttrs Struct Reference

UDMAMSP432E4 Hardware attributes. More...

#include <UDMAMSP432E4.h>

Data Fields

void * controlBaseAddr
 
UDMAMSP432E4_ErrorFxn dmaErrorFxn
 
uint8_t intNum
 
uint8_t intPriority
 

Detailed Description

UDMAMSP432E4 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. If the driver uses the ti.dpl 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 <ti/devices/msp432p4xx/driverlib/udma.h>
static tDMAControlTable dmaControlTable[64] __attribute__ ((aligned (1024)));
//
// ======== dmaErrorFxn ========
// This is the handler for the uDMA error interrupt.
//
static void dmaErrorFxn(uintptr_t arg)
{
int status = uDMAErrorStatusGet();
uDMAErrorStatusClear();
// Suppress unused variable warning
(void)status;
while (1);
}
UDMAMSP432E4_Object udmaMSP432E4Object;
const UDMAMSP432E4_HWAttrs udmaMSP432E4HWAttrs = {
.controlBaseAddr = (void *)dmaControlTable,
.intNum = INT_UDMAERR,
.intPriority = (~0)
};

Field Documentation

§ controlBaseAddr

void* UDMAMSP432E4_HWAttrs::controlBaseAddr

uDMA control registers base address

§ dmaErrorFxn

UDMAMSP432E4_ErrorFxn UDMAMSP432E4_HWAttrs::dmaErrorFxn

uDMA error interrupt handler

§ intNum

uint8_t UDMAMSP432E4_HWAttrs::intNum

uDMA error interrupt number

§ intPriority

uint8_t UDMAMSP432E4_HWAttrs::intPriority

uDMA error interrupt priority.


The documentation for this struct was generated from the following file:
© Copyright 1995-2019, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale