Go to the documentation of this file.
40 #if TARGET_NUM == 32650
42 #elif TARGET_NUM == 32655
44 #elif TARGET_NUM == 32660
46 #elif TARGET_NUM == 32665
48 #elif TARGET_NUM == 32690
50 #elif TARGET_NUM == 78000
54 #define MAX_DMA ((struct max_dma_regs *)(MXC_DMA))
55 #define MAX_DMA_IRQ_EN_ALL_CH NO_OS_GENMASK(15, 0)
56 #define MAX_DMA_ENABLED NO_OS_BIT(0)
57 #define MAX_DMA_ENABLE NO_OS_BIT(0)
58 #define MAX_DMA_IRQ_CTZ_EN NO_OS_BIT(31)
59 #define MAX_DMA_REQSEL_MASK NO_OS_GENMASK(9, 4)
60 #define MAX_DMA_DST_INC NO_OS_BIT(22)
61 #define MAX_DMA_SRC_INC NO_OS_BIT(18)
64 volatile uint32_t
cfg;
66 volatile uint32_t
src;
67 volatile uint32_t
dst;
68 volatile uint32_t
cnt;
76 volatile const uint32_t
intr;
91 static inline uint32_t max_dma_get_irq(uint32_t
id, uint32_t ch)
93 #if TARGET_NUM == 32665
95 return MXC_DMA0_CH_GET_IRQ(ch);
97 return MXC_DMA1_CH_GET_IRQ(ch);
99 return MXC_DMA_CH_GET_IRQ(ch);
#define MAX_DMA_DST_INC
Definition: maxim_dma.h:60
volatile uint32_t dst_rld
Definition: maxim_dma.h:70
#define MAX_DMA_SRC_INC
Definition: maxim_dma.h:61
const uint32_t rsv_0x8_0xff[62]
Definition: maxim_dma.h:77
volatile uint32_t src_rld
Definition: maxim_dma.h:69
Initialization parameter for the DMA controller.
Definition: no_os_dma.h:171
uint32_t id
Definition: no_os_dma.h:109
Header file of IRQ interface.
uint32_t id
Definition: no_os_dma.h:138
Definition: maxim_dma.h:63
volatile uint32_t cfg
Definition: maxim_dma.h:64
uint32_t irq_num
Definition: no_os_dma.h:115
@ DEV_TO_MEM
Definition: no_os_dma.h:52
void * extra
Definition: no_os_dma.h:153
Definition: maxim_dma.h:74
volatile uint32_t cn
Definition: maxim_dma.h:75
#define MAX_DMA_ENABLED
Definition: maxim_dma.h:56
volatile uint32_t src
Definition: maxim_dma.h:66
void * no_os_calloc(size_t nitems, size_t size)
Allocate memory and return a pointer to it, set memory to 0.
Definition: chibios_alloc.c:54
#define MAX_DMA_IRQ_CTZ_EN
Definition: maxim_dma.h:58
uint32_t num_ch
Definition: no_os_dma.h:175
uint32_t id
Definition: no_os_dma.h:173
struct no_os_dma_platform_ops max_dma_ops
Maxim platform specific callbacks for the DMA API.
Definition: maxim_dma.c:273
uint32_t no_os_field_prep(uint32_t mask, uint32_t val)
const volatile uint32_t intr
Definition: maxim_dma.h:76
Describes the state of a DMA channel.
Definition: no_os_dma.h:107
uint8_t * dst
Definition: no_os_dma.h:75
@ MEM_TO_MEM
Definition: no_os_dma.h:50
const struct no_os_irq_platform_ops max_irq_ops
maxim specific IRQ platform ops structure
Definition: maxim_irq.c:657
uint32_t irq_ctrl_id
Definition: no_os_irq.h:109
int32_t no_os_irq_ctrl_init(struct no_os_irq_ctrl_desc **desc, const struct no_os_irq_init_param *param)
Initialize the IRQ interrupts.
Definition: no_os_irq.c:45
It's used to setup a generic DMA transfer.
Definition: no_os_dma.h:71
struct no_os_dma_platform_ops max_dma_ops
Maxim platform specific callbacks for the DMA API.
Definition: maxim_dma.c:273
struct no_os_irq_ctrl_desc * irq_ctrl
Definition: no_os_dma.h:151
#define MAX_DMA_GCR_RST_POS
Definition: maxim_dma.c:43
uint32_t num_ch
Definition: no_os_dma.h:140
bool free
Definition: no_os_dma.h:111
enum no_os_dma_xfer_type xfer_type
Definition: no_os_dma.h:79
#define MAX_DMA_ENABLE
Definition: maxim_dma.h:57
void no_os_free(void *ptr)
Deallocate memory previously allocated by a call to no_os_calloc or no_os_malloc.
Definition: chibios_alloc.c:69
#define NULL
Definition: wrapper.h:64
volatile uint32_t cnt
Definition: maxim_dma.h:68
#define MAX_DMA_IRQ_EN_ALL_CH
Definition: maxim_dma.h:55
volatile uint32_t st
Definition: maxim_dma.h:65
volatile uint32_t dst
Definition: maxim_dma.h:67
uint8_t * src
Definition: no_os_dma.h:73
Structure holding the initial parameters for Interrupt Request.
Definition: no_os_irq.h:107
int32_t no_os_irq_ctrl_remove(struct no_os_irq_ctrl_desc *desc)
Free the resources allocated by no_os_irq_ctrl_init().
Definition: no_os_irq.c:71
void * extra
Definition: no_os_dma.h:120
volatile struct max_dma_ch_regs ch[MXC_DMA_CHANNELS]
Definition: maxim_dma.h:78
volatile uint32_t cnt_rld
Definition: maxim_dma.h:71
@ MEM_TO_DEV
Definition: no_os_dma.h:51
struct no_os_dma_ch * channels
Definition: no_os_dma.h:142
Header file of utility functions.
#define MAX_DMA_REQSEL_MASK
Definition: maxim_dma.h:59
#define MAX_DMA
Definition: maxim_dma.h:54
bool sync_lock
Definition: no_os_dma.h:129
Maxim platform specific header DMA API.
uint32_t length
Definition: no_os_dma.h:77
Platform independent function definitions and data types for the DMA API.
Describes the state of the DMA controller.
Definition: no_os_dma.h:136