VSF Documented
|
Go to the source code of this file.
Typedefs | |
typedef enum vsf_hw_peripheral_rst_t | vsf_hw_peripheral_rst_t |
typedef enum vsf_hw_peripheral_en_t | vsf_hw_peripheral_en_t |
typedef struct vsf_hw_clk_t | vsf_hw_clk_t |
Enumerations | |
enum | vsf_hw_peripheral_rst_t { VSF_HW_RST_USART1 = VSF_HW_CLKRST_REGION(0x26, 4, 1) , VSF_HW_RST_USART2 = VSF_HW_CLKRST_REGION(0x24, 17, 1) , VSF_HW_RST_USART3 = VSF_HW_CLKRST_REGION(0x24, 18, 1) , VSF_HW_RST_UART4 = VSF_HW_CLKRST_REGION(0x24, 19, 1) , VSF_HW_RST_UART5 = VSF_HW_CLKRST_REGION(0x24, 20, 1) , VSF_HW_RST_USART6 = VSF_HW_CLKRST_REGION(0x26, 5, 1) , VSF_HW_RST_UART7 = VSF_HW_CLKRST_REGION(0x24, 30, 1) , VSF_HW_RST_UART8 = VSF_HW_CLKRST_REGION(0x24, 31, 1) , VSF_HW_RST_SDMMC1 = VSF_HW_CLKRST_REGION(0x1F, 16, 1) , VSF_HW_RST_SDMMC2 = VSF_HW_CLKRST_REGION(0x21, 9, 1) } |
enum | vsf_hw_peripheral_en_t { VSF_HW_EN_GPIOA = VSF_HW_CLKRST_REGION(0x38, 0, 1) , VSF_HW_EN_GPIOB = VSF_HW_CLKRST_REGION(0x38, 1, 1) , VSF_HW_EN_GPIOC = VSF_HW_CLKRST_REGION(0x38, 2, 1) , VSF_HW_EN_GPIOD = VSF_HW_CLKRST_REGION(0x38, 3, 1) , VSF_HW_EN_GPIOE = VSF_HW_CLKRST_REGION(0x38, 4, 1) , VSF_HW_EN_GPIOF = VSF_HW_CLKRST_REGION(0x38, 5, 1) , VSF_HW_EN_GPIOG = VSF_HW_CLKRST_REGION(0x38, 6, 1) , VSF_HW_EN_GPIOH = VSF_HW_CLKRST_REGION(0x38, 7, 1) , VSF_HW_EN_GPIOI = VSF_HW_CLKRST_REGION(0x38, 8, 1) , VSF_HW_EN_GPIOJ = VSF_HW_CLKRST_REGION(0x38, 9, 1) , VSF_HW_EN_GPIOK = VSF_HW_CLKRST_REGION(0x38, 10, 1) , VSF_HW_EN_USART1 = VSF_HW_CLKRST_REGION(0x3C, 4, 1) , VSF_HW_EN_USART2 = VSF_HW_CLKRST_REGION(0x3A, 17, 1) , VSF_HW_EN_USART3 = VSF_HW_CLKRST_REGION(0x3A, 18, 1) , VSF_HW_EN_UART4 = VSF_HW_CLKRST_REGION(0x3A, 19, 1) , VSF_HW_EN_UART5 = VSF_HW_CLKRST_REGION(0x3A, 20, 1) , VSF_HW_EN_USART6 = VSF_HW_CLKRST_REGION(0x3C, 5, 1) , VSF_HW_EN_UART7 = VSF_HW_CLKRST_REGION(0x3A, 30, 1) , VSF_HW_EN_UART8 = VSF_HW_CLKRST_REGION(0x3A, 31, 1) , VSF_HW_EN_SDMMC1 = VSF_HW_CLKRST_REGION(0x35, 16, 1) , VSF_HW_EN_SDMMC2 = VSF_HW_CLKRST_REGION(0x37, 9, 1) } |
Functions | |
const vsf_hw_clk_t * | vsf_hw_clk_get_src (const vsf_hw_clk_t *clk) |
uint32_t | vsf_hw_clk_get_freq_hz (const vsf_hw_clk_t *clk) |
void | vsf_hw_clkrst_region_set (uint32_t region, uint_fast8_t value) |
uint_fast8_t | vsf_hw_clkrst_region_get (uint32_t region) |
void | vsf_hw_clkrst_region_set_bit (uint32_t region) |
void | vsf_hw_clkrst_region_clear_bit (uint32_t region) |
uint_fast8_t | vsf_hw_clkrst_region_get_bit (uint32_t region) |
#define VSF_HW_CLKRST_REGION | ( | __WORD_OFFSET, | |
__BIT_OFFSET, | |||
__BIT_LENGTH | |||
) | (((__WORD_OFFSET) << 16) | ((__BIT_LENGTH) << 8) | ((__BIT_OFFSET) << 0)) |
#define vsf_hw_peripheral_clk_set vsf_hw_clkrst_region_set |
#define vsf_hw_peripheral_clk_get vsf_hw_clkrst_region_get |
#define vsf_hw_peripheral_rst_set vsf_hw_clkrst_region_set_bit |
#define vsf_hw_peripheral_rst_clear vsf_hw_clkrst_region_clear_bit |
#define vsf_hw_peripheral_rst_get vsf_hw_clkrst_region_get_bit |
#define vsf_hw_peripheral_enable vsf_hw_clkrst_region_set_bit |
#define vsf_hw_peripheral_disable vsf_hw_clkrst_region_clear_bit |
#define VSF_HW_CLK_USART1 VSF_HW_CLK_USART16 |
#define VSF_HW_CLK_USART2 VSF_HW_CLK_USART234578 |
#define VSF_HW_CLK_USART3 VSF_HW_CLK_USART234578 |
#define VSF_HW_CLK_UART4 VSF_HW_CLK_USART234578 |
#define VSF_HW_CLK_UART5 VSF_HW_CLK_USART234578 |
#define VSF_HW_CLK_USART6 VSF_HW_CLK_USART16 |
#define VSF_HW_CLK_UART7 VSF_HW_CLK_USART234578 |
#define VSF_HW_CLK_UART8 VSF_HW_CLK_USART234578 |
#define VSF_HW_CLK_SDMMC1 VSF_HW_CLK_SDMMC |
#define VSF_HW_CLK_SDMMC2 VSF_HW_CLK_SDMMC |
typedef enum vsf_hw_peripheral_rst_t vsf_hw_peripheral_rst_t |
typedef enum vsf_hw_peripheral_en_t vsf_hw_peripheral_en_t |
typedef struct vsf_hw_clk_t vsf_hw_clk_t |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |