VSF Documented
|
#include "hal/vsf_hal_cfg.h"
#include "../__device.h"
#include "hal/driver/common/swi/arm/vsf_swi_template.inc"
Data Structures | |
struct | vsf_hw_clk_t |
Macros | |
#define | HSE_VALUE ((uint32_t)25000000) |
#define | LSE_VALUE ((uint32_t)32000) |
#define | CSI_VALUE ((uint32_t)4000000) |
#define | HSI_VALUE ((uint32_t)64000000) |
Typedefs | |
typedef enum vsf_hw_peripheral_clksel_t | vsf_hw_peripheral_clksel_t |
Enumerations | |
enum | vsf_hw_peripheral_clksel_t { VSF_HW_CLKSEL_USART16 = VSF_HW_CLKRST_REGION(0x15, 3, 3) , VSF_HW_CLKSEL_USART234578 = VSF_HW_CLKRST_REGION(0x15, 0, 3) , VSF_HW_CLKSEL_SDMMC = VSF_HW_CLKRST_REGION(0x13, 16, 1) } |
enum | { VSF_HW_CLK_PRESCALER_DIV , VSF_HW_CLK_PRESCALER_ADD1_DIV , VSF_HW_CLK_PRESCALER_SFT , VSF_HW_CLK_PRESCALER_FUNC } |
enum | { VSF_HW_CLK_TYPE_CONST , VSF_HW_CLK_TYPE_CLK , VSF_HW_CLK_TYPE_SEL } |
Functions | |
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) |
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) |
bool | vsf_driver_init (void) |
common hal drivers | |
#define HSE_VALUE ((uint32_t)25000000) |
#define LSE_VALUE ((uint32_t)32000) |
#define CSI_VALUE ((uint32_t)4000000) |
#define HSI_VALUE ((uint32_t)64000000) |
typedef enum vsf_hw_peripheral_clksel_t vsf_hw_peripheral_clksel_t |
anonymous enum |
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 | ) |
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 | ) |
bool vsf_driver_init | ( | void | ) |
const vsf_hw_clk_t VSF_HW_CLK_HSI |
const vsf_hw_clk_t VSF_HW_CLK_HSI_KER |
const vsf_hw_clk_t VSF_HW_CLK_HSI48 |
const vsf_hw_clk_t VSF_HW_CLK_LSI |
const vsf_hw_clk_t VSF_HW_CLK_CSI |
const vsf_hw_clk_t VSF_HW_CLK_CSI_KER |
const vsf_hw_clk_t VSF_HW_CLK_HSE |
const vsf_hw_clk_t VSF_HW_CLK_LSE |
const vsf_hw_clk_t VSF_HW_CLK_PLL1_P |
const vsf_hw_clk_t VSF_HW_CLK_PLL1_Q |
const vsf_hw_clk_t VSF_HW_CLK_PLL1_R |
const vsf_hw_clk_t VSF_HW_CLK_PLL2_P |
const vsf_hw_clk_t VSF_HW_CLK_PLL2_Q |
const vsf_hw_clk_t VSF_HW_CLK_PLL2_R |
const vsf_hw_clk_t VSF_HW_CLK_PLL3_P |
const vsf_hw_clk_t VSF_HW_CLK_PLL3_Q |
const vsf_hw_clk_t VSF_HW_CLK_PLL3_R |
const vsf_hw_clk_t VSF_HW_CLK_SYS |
const vsf_hw_clk_t VSF_HW_CLK_SYSD1 |
const vsf_hw_clk_t VSF_HW_CLK_HCLK |
const vsf_hw_clk_t VSF_HW_CLK_PER |
const vsf_hw_clk_t VSF_HW_CLK_PCLK1 |
const vsf_hw_clk_t VSF_HW_CLK_PCLK2 |
const vsf_hw_clk_t VSF_HW_CLK_PCLK3 |
const vsf_hw_clk_t VSF_HW_CLK_PCLK4 |
const vsf_hw_clk_t VSF_HW_CLK_USART16 |
const vsf_hw_clk_t VSF_HW_CLK_USART234578 |
const vsf_hw_clk_t VSF_HW_CLK_SDMMC |