100 #ifndef ti_drivers_UDMALPF3__include 101 #define ti_drivers_UDMALPF3__include 108 #include <ti/devices/DeviceFamily.h> 109 #include DeviceFamily_constructPath(inc/hw_types.h) 110 #include DeviceFamily_constructPath(driverlib/udma.h) 117 #if !defined(UDMALPF3_CONFIG_BASE) 118 #define UDMALPF3_CONFIG_BASE 0x20000400 122 #if (UDMALPF3_CONFIG_BASE & 0x3FF) 123 #error "Base address for DMA control table 'UDMALPF3_CONFIG_BASE' must be 1024 bytes aligned." 127 #if defined(__IAR_SYSTEMS_ICC__) 128 #define ALLOCATE_CONTROL_TABLE_ENTRY(ENTRY_NAME, CHANNEL_INDEX) \ 129 __no_init __root static volatile uDMAControlTableEntry ENTRY_NAME @UDMALPF3_CONFIG_BASE + \ 130 (CHANNEL_INDEX) * sizeof(uDMAControlTableEntry) 131 #elif defined(__TI_COMPILER_VERSION__) || defined(__clang__) 132 #define ALLOCATE_CONTROL_TABLE_ENTRY(ENTRY_NAME, CHANNEL_INDEX) \ 133 static volatile uDMAControlTableEntry ENTRY_NAME \ 134 __attribute__((retain, \ 135 location((UDMALPF3_CONFIG_BASE) + (CHANNEL_INDEX) * sizeof(uDMAControlTableEntry)))) 136 #elif defined(__GNUC__) 137 #define ALLOCATE_CONTROL_TABLE_ENTRY(ENTRY_NAME, CHANNEL_INDEX) \ 138 extern int UDMALPF3_##ENTRY_NAME##_is_placed; \ 139 __attribute__((section("." #ENTRY_NAME), used)) static volatile uDMAControlTableEntry ENTRY_NAME = { \ 140 &UDMALPF3_##ENTRY_NAME##_is_placed} 142 #error "don't know how to define ALLOCATE_CONTROL_TABLE_ENTRY for this toolchain" 146 #define UDMALPF3_SET_TRANSFER_SIZE(SIZE) (((SIZE - 1) << UDMA_XFER_SIZE_S) & UDMA_XFER_SIZE_M) 148 #define UDMALPF3_GET_TRANSFER_SIZE(CONTROL) (((CONTROL & UDMA_XFER_SIZE_M) >> UDMA_XFER_SIZE_S) + 1) 193 uDMAEnableChannel(channelBitMask);
215 return (uDMAIntStatus() & channelBitMask) ?
true :
false;
233 uDMAClearInt(channelBitMask);
253 uDMADisableChannel(channelBitMask);
276 uDMADisableChannelAttribute(channelBitMask, attr);
const UDMALPF3_Config UDMALPF3_config
__STATIC_INLINE bool UDMALPF3_channelDone(uint32_t channelBitMask)
Definition: UDMALPF3.h:212
__STATIC_INLINE void UDMALPF3_channelDisable(uint32_t channelBitMask)
Definition: UDMALPF3.h:250
__STATIC_INLINE void UDMALPF3_channelEnable(uint32_t channelBitMask)
Definition: UDMALPF3.h:190
UDMALPF3 Global configuration.
Definition: UDMALPF3.h:153
__STATIC_INLINE void UDMALPF3_disableAttribute(uint32_t channelBitMask, uint32_t attr)
Definition: UDMALPF3.h:273
uint32_t CtrlBaseAddr
Definition: UDMALPF3.h:155
void UDMALPF3_init(void)
Function to initialize the LPF3 DMA driver and peripheral.
__STATIC_INLINE void UDMALPF3_clearInterrupt(uint32_t channelBitMask)
Definition: UDMALPF3.h:230