101 #ifndef ti_drivers_UDMALPF3__include 102 #define ti_drivers_UDMALPF3__include 109 #include <ti/devices/DeviceFamily.h> 110 #include DeviceFamily_constructPath(inc/hw_types.h) 111 #include DeviceFamily_constructPath(driverlib/udma.h) 118 #if !defined(UDMALPF3_CONFIG_BASE) 120 #define UDMALPF3_CONFIG_BASE 0x3000C400 122 #define UDMALPF3_CONFIG_BASE 0x20000400 127 #if (UDMALPF3_CONFIG_BASE & 0x3FF) 128 #error "Base address for DMA control table 'UDMALPF3_CONFIG_BASE' must be 1024 bytes aligned." 132 #if defined(__IAR_SYSTEMS_ICC__) 133 #define ALLOCATE_CONTROL_TABLE_ENTRY(ENTRY_NAME, CHANNEL_INDEX) \ 134 __no_init __root static volatile uDMAControlTableEntry ENTRY_NAME @UDMALPF3_CONFIG_BASE + \ 135 (CHANNEL_INDEX) * sizeof(uDMAControlTableEntry) 136 #elif defined(__TI_COMPILER_VERSION__) || defined(__clang__) 137 #define ALLOCATE_CONTROL_TABLE_ENTRY(ENTRY_NAME, CHANNEL_INDEX) \ 138 static volatile uDMAControlTableEntry ENTRY_NAME \ 139 __attribute__((retain, \ 140 location((UDMALPF3_CONFIG_BASE) + (CHANNEL_INDEX) * sizeof(uDMAControlTableEntry)))) 141 #elif defined(__GNUC__) 142 #define ALLOCATE_CONTROL_TABLE_ENTRY(ENTRY_NAME, CHANNEL_INDEX) \ 143 extern int UDMALPF3_##ENTRY_NAME##_is_placed; \ 144 __attribute__((section("." #ENTRY_NAME), used)) static volatile uDMAControlTableEntry ENTRY_NAME = { \ 145 &UDMALPF3_##ENTRY_NAME##_is_placed} 147 #error "don't know how to define ALLOCATE_CONTROL_TABLE_ENTRY for this toolchain" 151 #define UDMALPF3_SET_TRANSFER_SIZE(SIZE) (((SIZE - 1) << UDMA_XFER_SIZE_S) & UDMA_XFER_SIZE_M) 153 #define UDMALPF3_GET_TRANSFER_SIZE(CONTROL) (((CONTROL & UDMA_XFER_SIZE_M) >> UDMA_XFER_SIZE_S) + 1) 198 uDMAEnableChannel(channelBitMask);
220 return (uDMAIntStatus() & channelBitMask) ?
true :
false;
238 uDMAClearInt(channelBitMask);
258 uDMADisableChannel(channelBitMask);
281 uDMADisableChannelAttribute(channelBitMask, attr);
const UDMALPF3_Config UDMALPF3_config
__STATIC_INLINE bool UDMALPF3_channelDone(uint32_t channelBitMask)
Definition: UDMALPF3.h:217
__STATIC_INLINE void UDMALPF3_channelDisable(uint32_t channelBitMask)
Definition: UDMALPF3.h:255
__STATIC_INLINE void UDMALPF3_channelEnable(uint32_t channelBitMask)
Definition: UDMALPF3.h:195
UDMALPF3 Global configuration.
Definition: UDMALPF3.h:158
__STATIC_INLINE void UDMALPF3_disableAttribute(uint32_t channelBitMask, uint32_t attr)
Definition: UDMALPF3.h:278
uint32_t CtrlBaseAddr
Definition: UDMALPF3.h:160
void UDMALPF3_init(void)
Function to initialize the LPF3 DMA driver and peripheral.
__STATIC_INLINE void UDMALPF3_clearInterrupt(uint32_t channelBitMask)
Definition: UDMALPF3.h:235