24#if defined(__VSF_HEADER_ONLY_SHOW_ARCH_INFO__)
28# define VSF_ARCH_PRI_NUM 16
29# define VSF_ARCH_PRI_BIT 4
33#ifndef __HAL_DEVICE_MT071_H__
34#define __HAL_DEVICE_MT071_H__
44#define __SYSTEM_FREQ VSF_SYSTIMER_FREQ
45#define __PLL_FREQ_HZ __SYSTEM_FREQ
64# define DMA_CHANNEL_COUNT 4
65# define DMA_CHANNEL_MAX_TRANS_SIZES \
68#define USART_MAX_PORT 1
69# define USART0_TX_DMA 0
70# define USART0_RX_DMA 1
71# define USART1_TX_DMA 2
72# define USART1_RX_DMA 3
74#define USB_OTG_COUNT 1
75#define USB_OTG0_IRQHandler USB_IRQHandler
76#define USB_OTG0_EP_NUMBER 8
77#define USB_OTG0_CONFIG \
78 .reg = (void *)USB_Common_Base, \
79 .sclk = SCLK_USB_IDX, \
80 .pclk = PCLK_USB_IDX, \
85#define __def_idx(__name, __no) VSF_MCONNECT2(__name, _IDX) = (__no)
86#define __def_msk(__name) VSF_MCONNECT2(__name, _MSK) = BIT(VSF_MCONNECT2(__name, _IDX) & 0x1F)
91#define __def_clk_idx(__name, __clksel, __clkdiv, __clkref) \
92 VSF_MCONNECT2(__name, _IDX) = ((__clksel) << 0) \
vsf_err_t
Definition __type.h:42
def_interface(i_adc_t) i_peripheral_t
vsf_io_port_no_t
Definition io.h:90
#define __def_idx(__name, __no)
Definition device.h:51
#define __def_msk(__name)
Definition device.h:52
#define __def_clk_idx(__name, __clksel, __clkdiv, __clkref)
Definition device.h:91
@ PLL_USB_IDX
Definition device.h:233
@ PLL_IDX
Definition device.h:232
@ VSF_PM_DPD
Definition device.h:120
end_def_interface(i_pm_wakeup_t) struct vsf_pm_pclk_cfg_t
Definition device.h:249
UseIO
Definition device.h:248
@ USART_CLKSRC_12MIRC
Definition device.h:214
@ USB_CLKSRC_12MOSC
Definition device.h:220
@ CLKSRC_12MIRC
Definition device.h:201
@ MAINCLK_CLKSRC_12MOSC
Definition device.h:211
@ MAINCLK_CLKSRC_12MIRC
Definition device.h:209
@ OUTCLK_CLKSRC_USB_PLL
Definition device.h:227
@ USART_CLKSRC_PLL
Definition device.h:215
@ CLKREF_12MOSC
Definition device.h:207
@ CLKSRC_12MOSC
Definition device.h:203
@ OUTCLK_CLKSRC_32KOSC
Definition device.h:226
@ OUTCLK_CLKSRC_12MOSC
Definition device.h:225
@ CLKREF_12MIRC
Definition device.h:206
@ CLKSRC_10KIRC
Definition device.h:204
@ OUTCLK_CLKSRC_PLL
Definition device.h:223
@ OUTCLK_CLKSRC_10KIRC
Definition device.h:224
@ MAINCLK_CLKSRC_10KIRC
Definition device.h:212
@ CLKSRC_PLL
Definition device.h:202
@ MAINCLK_CLKSRC_PLL
Definition device.h:210
@ USB_CLKSRC_12MIRC
Definition device.h:219
@ USART_CLKSRC_10KIRC
Definition device.h:217
@ OUTCLK_CLKSRC_12MIRC
Definition device.h:222
@ USART_CLKSRC_12MOSC
Definition device.h:216
unsigned short uint16_t
Definition lvgl.h:41
unsigned int uint32_t
Definition lvgl.h:43
unsigned char uint_fast8_t
Definition stdint.h:23
unsigned int uint_fast32_t
Definition stdint.h:27
uint32_t dummy
Definition pm.h:550
main clock config struct
Definition vsf_template_pm.h:347
uint16_t core_div[1]
system core clock divider
Definition pm.h:571
uint32_t freq
system oscillator frequency
Definition vsf_template_pm.h:349
vsf_pm_clk_src_sel_t clk_src
main clock source
Definition vsf_template_pm.h:348
uint16_t sclk_div[1]
system sync clock divider
Definition device.h:262
Definition vsf_template_pm.h:314
uint16_t div
Definition vsf_template_pm.h:316
vsf_pm_clk_src_sel_t clk_src
Definition vsf_template_pm.h:315
void(* Enable)(void)
enable
Definition systick.h:86
bool(* Disable)(void)
disable
Definition systick.h:87
uint32_t size
Definition vsf_memfs.h:50
vsf_pm_sclk_msk_t
Definition vsf_template_pm.h:251
vsf_pm_pll_sel_t
Definition vsf_template_pm.h:374
vsf_pm_power_cfg_msk_t
Definition vsf_template_pm.h:210
vsf_pm_power_cfg_no_t
Definition vsf_template_pm.h:204
vsf_pm_pclk_no_t
Definition vsf_template_pm.h:304
vsf_pm_sclk_no_t
Definition vsf_template_pm.h:242
vsf_pm_sleep_mode_t
Definition vsf_template_pm.h:222
@ VSF_PM_POWER_OFF
Definition vsf_template_pm.h:226
@ VSF_PM_DEEP_SLEEP
Definition vsf_template_pm.h:225
@ VSF_PM_WAIT
Definition vsf_template_pm.h:223
@ VSF_PM_SLEEP
Definition vsf_template_pm.h:224
vsf_pm_clk_src_sel_t
Definition vsf_template_pm.h:266