18#ifndef __HAL_DRIVER_ST_STM32H7XX_COMMON_H__
19#define __HAL_DRIVER_ST_STM32H7XX_COMMON_H__
32#define VSF_HW_CLKRST_REGION(__WORD_OFFSET, __BIT_OFFSET, __BIT_LENGTH) \
33 (((__WORD_OFFSET) << 16) | ((__BIT_LENGTH) << 8) | ((__BIT_OFFSET) << 0))
37#define vsf_hw_peripheral_clk_set vsf_hw_clkrst_region_set
38#define vsf_hw_peripheral_clk_get vsf_hw_clkrst_region_get
40#define vsf_hw_peripheral_rst_set vsf_hw_clkrst_region_set_bit
41#define vsf_hw_peripheral_rst_clear vsf_hw_clkrst_region_clear_bit
42#define vsf_hw_peripheral_rst_get vsf_hw_clkrst_region_get_bit
44#define vsf_hw_peripheral_enable vsf_hw_clkrst_region_set_bit
45#define vsf_hw_peripheral_disable vsf_hw_clkrst_region_clear_bit
122#if VSF_HAL_USE_USART == ENABLED
125#define VSF_HW_CLK_USART1 VSF_HW_CLK_USART16
126#define VSF_HW_CLK_USART2 VSF_HW_CLK_USART234578
127#define VSF_HW_CLK_USART3 VSF_HW_CLK_USART234578
128#define VSF_HW_CLK_UART4 VSF_HW_CLK_USART234578
129#define VSF_HW_CLK_UART5 VSF_HW_CLK_USART234578
130#define VSF_HW_CLK_USART6 VSF_HW_CLK_USART16
131#define VSF_HW_CLK_UART7 VSF_HW_CLK_USART234578
132#define VSF_HW_CLK_UART8 VSF_HW_CLK_USART234578
135#if VSF_HAL_USE_SDIO == ENABLED
137#define VSF_HW_CLK_SDMMC1 VSF_HW_CLK_SDMMC
138#define VSF_HW_CLK_SDMMC2 VSF_HW_CLK_SDMMC
vsf_hw_peripheral_rst_t
Definition common.h:58
#define VSF_HW_CLKRST_REGION(__WORD_OFFSET, __BIT_OFFSET, __BIT_LENGTH)
Definition common.h:32
vsf_hw_peripheral_en_t
Definition common.h:172
@ VSF_HW_RST_SDMMC2
Definition common.h:66
const vsf_hw_clk_t VSF_HW_CLK_SYS
Definition driver.c:326
vsf_hw_peripheral_rst_t
Definition common.h:49
@ VSF_HW_RST_USART3
Definition common.h:52
@ VSF_HW_RST_UART7
Definition common.h:56
@ VSF_HW_RST_USART2
Definition common.h:51
@ VSF_HW_RST_USART6
Definition common.h:55
@ VSF_HW_RST_UART8
Definition common.h:57
@ VSF_HW_RST_USART1
Definition common.h:50
@ VSF_HW_RST_SDMMC1
Definition common.h:59
@ VSF_HW_RST_UART5
Definition common.h:54
@ VSF_HW_RST_UART4
Definition common.h:53
const vsf_hw_clk_t VSF_HW_CLK_LSI
Definition driver.c:149
const vsf_hw_clk_t VSF_HW_CLK_HSI48
Definition driver.c:115
const vsf_hw_clk_t VSF_HW_CLK_USART16
Definition driver.c:415
void vsf_hw_clkrst_region_clear_bit(uint32_t region)
Definition driver.c:518
const vsf_hw_clk_t VSF_HW_CLK_HSI_KER
Definition driver.c:109
const vsf_hw_clk_t VSF_HW_CLK_SDMMC
Definition driver.c:433
const vsf_hw_clk_t VSF_HW_CLK_PLL1_P
Definition driver.c:254
const vsf_hw_clk_t VSF_HW_CLK_PLL1_R
Definition driver.c:226
const vsf_hw_clk_t VSF_HW_CLK_PCLK4
Definition driver.c:393
const vsf_hw_clk_t VSF_HW_CLK_PLL3_R
Definition driver.c:364
const vsf_hw_clk_t VSF_HW_CLK_PLL2_R
Definition driver.c:309
void vsf_hw_clkrst_region_set_bit(uint32_t region)
Definition driver.c:506
const vsf_hw_clk_t VSF_HW_CLK_PCLK3
Definition driver.c:381
const vsf_hw_clk_t VSF_HW_CLK_PLL3_P
Definition driver.c:342
const vsf_hw_clk_t VSF_HW_CLK_CSI_KER
Definition driver.c:164
const vsf_hw_clk_t VSF_HW_CLK_HCLK
Definition driver.c:329
const vsf_hw_clk_t VSF_HW_CLK_PLL2_Q
Definition driver.c:298
const vsf_hw_clk_t VSF_HW_CLK_PLL2_P
Definition driver.c:287
const vsf_hw_clk_t VSF_HW_CLK_USART234578
Definition driver.c:523
const vsf_hw_clk_t VSF_HW_CLK_LSE
Definition driver.c:195
const vsf_hw_clk_t VSF_HW_CLK_PCLK2
Definition driver.c:369
const vsf_hw_clk_t VSF_HW_CLK_HSI
Definition driver.c:97
uint32_t vsf_hw_clk_get_freq_hz(const vsf_hw_clk_t *clk)
Definition driver.c:594
vsf_hw_peripheral_en_t
Definition common.h:63
@ VSF_HW_EN_USART6
Definition common.h:81
@ VSF_HW_EN_GPIOH
Definition common.h:71
@ VSF_HW_EN_GPIOE
Definition common.h:68
@ VSF_HW_EN_USART3
Definition common.h:78
@ VSF_HW_EN_UART7
Definition common.h:82
@ VSF_HW_EN_USART2
Definition common.h:77
@ VSF_HW_EN_GPIOB
Definition common.h:65
@ VSF_HW_EN_GPIOC
Definition common.h:66
@ VSF_HW_EN_UART5
Definition common.h:80
@ VSF_HW_EN_GPIOD
Definition common.h:67
@ VSF_HW_EN_UART4
Definition common.h:79
@ VSF_HW_EN_GPIOA
Definition common.h:64
@ VSF_HW_EN_GPIOG
Definition common.h:70
@ VSF_HW_EN_UART8
Definition common.h:83
@ VSF_HW_EN_USART1
Definition common.h:76
@ VSF_HW_EN_GPIOJ
Definition common.h:73
@ VSF_HW_EN_SDMMC2
Definition common.h:86
@ VSF_HW_EN_GPIOK
Definition common.h:74
@ VSF_HW_EN_GPIOI
Definition common.h:72
@ VSF_HW_EN_GPIOF
Definition common.h:69
@ VSF_HW_EN_SDMMC1
Definition common.h:85
const vsf_hw_clk_t VSF_HW_CLK_PLL1_Q
Definition driver.c:265
uint_fast8_t vsf_hw_clkrst_region_get_bit(uint32_t region)
Definition driver.c:530
uint_fast8_t vsf_hw_clkrst_region_get(uint32_t region)
Definition driver.c:498
const vsf_hw_clk_t VSF_HW_CLK_HSE
Definition driver.c:180
const vsf_hw_clk_t VSF_HW_CLK_SYSD1
Definition driver.c:317
const vsf_hw_clk_t VSF_HW_CLK_PLL3_Q
Definition driver.c:353
const vsf_hw_clk_t VSF_HW_CLK_CSI
Definition driver.c:157
void vsf_hw_clkrst_region_set(uint32_t region, uint_fast8_t value)
Definition driver.c:485
const vsf_hw_clk_t VSF_HW_CLK_PCLK1
Definition driver.c:357
const vsf_hw_clk_t VSF_HW_CLK_PER
Definition driver.c:333
const vsf_hw_clk_t * vsf_hw_clk_get_src(const vsf_hw_clk_t *clk)
Definition driver.c:556
unsigned int uint32_t
Definition lvgl.h:43
unsigned char uint_fast8_t
Definition stdint.h:23
vk_av_control_value_t value
Definition vsf_audio.h:171