18#if defined(__VSF_HEADER_ONLY_SHOW_ARCH_INFO__)
24# ifndef __HAL_DRIVER_MT071_H__
25# define __HAL_DRIVER_MT071_H__
32# include "./usb/usb.h"
34# include "./usart/usart.h"
39#define DMA_CTRL_DST_WIDTH(__WIDTH) VSF_MCONNECT2(DMA_CTRL_DST_WIDTH_, __WIDTH)
41#define DMA_CTRL_SRC_WIDTH(__WIDTH) VSF_MCONNECT2(DMA_CTRL_SRC_WIDTH_, __WIDTH)
43#define DMA_CTRL_DST_BURST(__SIZE) VSF_MCONNECT2(DMA_CTRL_DST_BURST, __WIDTH)
45#define DMA_CTRL_SRC_BURST(__SIZE) VSF_MCONNECT2(DMA_CTRL_SRC_BURST, __WIDTH)
void __vsf_dma_free_channel(__dma_channel_t *channel)
Definition driver.c:143
void __vsf_dma_channel_stop(__dma_channel_t *channel)
Definition driver.c:134
__dma_channel_t * __vsf_dma_alloc_channel(__dma_trans_t *trans, uint_fast8_t trans_num)
Definition driver.c:150
__dma_trans_ctrl_t
Definition driver.h:50
@ DMA_DST_BURST_32
Definition driver.h:73
@ DMA_DST_BURST_16
Definition driver.h:72
@ DMA_DST_BURST_8
Definition driver.h:71
@ DMA_SRC_BURST_256
Definition driver.h:85
@ DMA_SRC_BURST_1
Definition driver.h:78
@ DMA_SRC_BURST_32
Definition driver.h:82
@ DMA_SRC_BURST_64
Definition driver.h:83
@ DMA_DST_BURST_64
Definition driver.h:74
@ DMA_SRC_BURST_4
Definition driver.h:79
@ DMA_DST_BURST_128
Definition driver.h:75
@ DMA_CTRL_SRC_KEEP
Definition driver.h:67
@ DMA_CTRL_SRC_WIDTH_8
Definition driver.h:57
@ DMA_CTRL_DST_KEEP
Definition driver.h:63
@ DMA_DST_BURST_256
Definition driver.h:76
@ DMA_SRC_BURST_16
Definition driver.h:81
@ DMA_CTRL_TRANS_TYPE_P2P
Definition driver.h:90
@ DMA_CTRL_DST_INC
Definition driver.h:61
@ DMA_CTRL_SRC_DEC
Definition driver.h:66
@ DMA_CTRL_SRC_WIDTH_16
Definition driver.h:58
@ DMA_CTRL_SRC_INC
Definition driver.h:65
@ DMA_SRC_BURST_128
Definition driver.h:84
@ DMA_CTRL_TRANS_TYPE_M2M
Definition driver.h:87
@ DMA_CTRL_DST_WIDTH_8
Definition driver.h:53
@ DMA_DST_BURST_1
Definition driver.h:69
@ DMA_CTRL_TRANS_TYPE_P2M
Definition driver.h:89
@ DMA_CTRL_DST_WIDTH_32
Definition driver.h:55
@ DMA_CTRL_INT_EN
Definition driver.h:51
@ DMA_CTRL_DST_WIDTH_16
Definition driver.h:54
@ DMA_DST_BURST_4
Definition driver.h:70
@ DMA_CTRL_SRC_WIDTH_32
Definition driver.h:59
@ DMA_SRC_BURST_8
Definition driver.h:80
@ DMA_CTRL_DST_DEC
Definition driver.h:62
@ DMA_CTRL_TRANS_TYPE_M2P
Definition driver.h:88
void __vsf_dma_channel_start(__dma_channel_t *channel, uint_fast64_t channel_cfg)
Definition driver.c:95
unsigned int uint32_t
Definition lvgl.h:43
unsigned char uint8_t
Definition lvgl.h:40
unsigned char uint_fast8_t
Definition stdint.h:23
unsigned long long uint_fast64_t
Definition stdint.h:29
__dma_trans_t * trans
Definition driver.h:121
struct __dma_channel_t::@660::@664 chain
bool is_chain
Definition driver.h:110
uint8_t trans_num
Definition driver.h:120
__dma_trans_t trans
Definition driver.h:123
void * param
Definition driver.h:115
void(* fn)(void *param, __dma_channel_t *channel)
Definition driver.h:114
bool is_started
Definition driver.h:111
uint8_t id
Definition driver.h:108
bool is_allocated
Definition driver.h:109
struct __dma_channel_t::@659 callback
void * dst
Definition driver.h:95
void * src
Definition driver.h:94
void * nxt
Definition driver.h:96
uint32_t __all_count
Definition driver.h:103
uint32_t __remain_count
Definition driver.h:102
uint32_t count
Definition driver.h:99
uint32_t ctrl
Definition driver.h:98