Go to the documentation of this file.
46 #if TARGET_NUM == 32650
48 #elif TARGET_NUM == 32655
50 #elif TARGET_NUM == 32660
52 #elif TARGET_NUM == 32665
54 #elif TARGET_NUM == 32690
56 #elif TARGET_NUM == 78000
60 #define MAX_DMA ((struct max_dma_regs *)(MXC_DMA))
61 #define MAX_DMA_IRQ_EN_ALL_CH NO_OS_GENMASK(15, 0)
62 #define MAX_DMA_ENABLED NO_OS_BIT(0)
63 #define MAX_DMA_ENABLE NO_OS_BIT(0)
64 #define MAX_DMA_IRQ_CTZ_EN NO_OS_BIT(31)
65 #define MAX_DMA_REQSEL_MASK NO_OS_GENMASK(9, 4)
66 #define MAX_DMA_DST_INC NO_OS_BIT(22)
67 #define MAX_DMA_SRC_INC NO_OS_BIT(18)
70 volatile uint32_t
cfg;
72 volatile uint32_t
src;
73 volatile uint32_t
dst;
74 volatile uint32_t
cnt;
82 volatile const uint32_t
intr;
97 static inline uint32_t max_dma_get_irq(uint32_t
id, uint32_t ch)
99 #if TARGET_NUM == 32665
101 return MXC_DMA0_CH_GET_IRQ(ch);
103 return MXC_DMA1_CH_GET_IRQ(ch);
105 return MXC_DMA_CH_GET_IRQ(ch);
#define MAX_DMA_DST_INC
Definition: maxim_dma.h:66
volatile uint32_t dst_rld
Definition: maxim_dma.h:76
#define MAX_DMA_SRC_INC
Definition: maxim_dma.h:67
const uint32_t rsv_0x8_0xff[62]
Definition: maxim_dma.h:83
volatile uint32_t src_rld
Definition: maxim_dma.h:75
Initialization parameter for the DMA controller.
Definition: no_os_dma.h:177
uint32_t id
Definition: no_os_dma.h:115
Header file of IRQ interface.
uint32_t id
Definition: no_os_dma.h:144
Definition: maxim_dma.h:69
volatile uint32_t cfg
Definition: maxim_dma.h:70
uint32_t irq_num
Definition: no_os_dma.h:121
@ DEV_TO_MEM
Definition: no_os_dma.h:58
void * extra
Definition: no_os_dma.h:159
Definition: maxim_dma.h:80
volatile uint32_t cn
Definition: maxim_dma.h:81
#define MAX_DMA_ENABLED
Definition: maxim_dma.h:62
volatile uint32_t src
Definition: maxim_dma.h:72
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:60
#define MAX_DMA_IRQ_CTZ_EN
Definition: maxim_dma.h:64
uint32_t num_ch
Definition: no_os_dma.h:181
uint32_t id
Definition: no_os_dma.h:179
struct no_os_dma_platform_ops max_dma_ops
Maxim platform specific callbacks for the DMA API.
Definition: maxim_dma.c:279
uint32_t no_os_field_prep(uint32_t mask, uint32_t val)
const volatile uint32_t intr
Definition: maxim_dma.h:82
Describes the state of a DMA channel.
Definition: no_os_dma.h:113
uint8_t * dst
Definition: no_os_dma.h:81
@ MEM_TO_MEM
Definition: no_os_dma.h:56
const struct no_os_irq_platform_ops max_irq_ops
maxim specific IRQ platform ops structure
Definition: maxim_irq.c:662
uint32_t irq_ctrl_id
Definition: no_os_irq.h:115
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:51
It's used to setup a generic DMA transfer.
Definition: no_os_dma.h:77
struct no_os_dma_platform_ops max_dma_ops
Maxim platform specific callbacks for the DMA API.
Definition: maxim_dma.c:279
struct no_os_irq_ctrl_desc * irq_ctrl
Definition: no_os_dma.h:157
#define MAX_DMA_GCR_RST_POS
Definition: maxim_dma.c:49
uint32_t num_ch
Definition: no_os_dma.h:146
bool free
Definition: no_os_dma.h:117
enum no_os_dma_xfer_type xfer_type
Definition: no_os_dma.h:85
#define MAX_DMA_ENABLE
Definition: maxim_dma.h:63
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:75
#define NULL
Definition: wrapper.h:64
volatile uint32_t cnt
Definition: maxim_dma.h:74
#define MAX_DMA_IRQ_EN_ALL_CH
Definition: maxim_dma.h:61
volatile uint32_t st
Definition: maxim_dma.h:71
volatile uint32_t dst
Definition: maxim_dma.h:73
uint8_t * src
Definition: no_os_dma.h:79
Structure holding the initial parameters for Interrupt Request.
Definition: no_os_irq.h:113
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:77
void * extra
Definition: no_os_dma.h:126
volatile struct max_dma_ch_regs ch[MXC_DMA_CHANNELS]
Definition: maxim_dma.h:84
volatile uint32_t cnt_rld
Definition: maxim_dma.h:77
@ MEM_TO_DEV
Definition: no_os_dma.h:57
struct no_os_dma_ch * channels
Definition: no_os_dma.h:148
Header file of utility functions.
#define MAX_DMA_REQSEL_MASK
Definition: maxim_dma.h:65
#define MAX_DMA
Definition: maxim_dma.h:60
bool sync_lock
Definition: no_os_dma.h:135
Maxim platform specific header DMA API.
uint32_t length
Definition: no_os_dma.h:83
Platform independent function definitions and data types for the DMA API.
Describes the state of the DMA controller.
Definition: no_os_dma.h:142