Go to the source code of this file.
|
#define | STM32_CLOCK_CONTROL_NODE DT_NODELABEL(rcc) |
|
#define | STM32_AHB_PRESCALER DT_PROP(DT_NODELABEL(rcc), ahb_prescaler) |
|
#define | STM32_APB1_PRESCALER DT_PROP(DT_NODELABEL(rcc), apb1_prescaler) |
|
#define | STM32_APB2_PRESCALER DT_PROP(DT_NODELABEL(rcc), apb2_prescaler) |
|
#define | STM32_APB3_PRESCALER DT_PROP(DT_NODELABEL(rcc), apb3_prescaler) |
|
#define | STM32_AHB3_PRESCALER DT_PROP(DT_NODELABEL(rcc), ahb3_prescaler) |
|
#define | STM32_AHB4_PRESCALER DT_PROP(DT_NODELABEL(rcc), ahb4_prescaler) |
|
#define | STM32_CPU1_PRESCALER DT_PROP(DT_NODELABEL(rcc), cpu1_prescaler) |
|
#define | STM32_CPU2_PRESCALER DT_PROP(DT_NODELABEL(rcc), cpu2_prescaler) |
|
#define | STM32_FLASH_PRESCALER STM32_CORE_PRESCALER |
|
#define | STM32_D1CPRE DT_PROP(DT_NODELABEL(rcc), d1cpre) |
|
#define | STM32_HPRE DT_PROP(DT_NODELABEL(rcc), hpre) |
|
#define | STM32_D2PPRE1 DT_PROP(DT_NODELABEL(rcc), d2ppre1) |
|
#define | STM32_D2PPRE2 DT_PROP(DT_NODELABEL(rcc), d2ppre2) |
|
#define | STM32_D1PPRE DT_PROP(DT_NODELABEL(rcc), d1ppre) |
|
#define | STM32_D3PPRE DT_PROP(DT_NODELABEL(rcc), d3ppre) |
|
#define | DT_RCC_CLOCKS_CTRL DT_CLOCKS_CTLR(DT_NODELABEL(rcc)) |
|
#define | STM32_LSE_ENABLED 0 |
|
#define | STM32_LSE_FREQ 0 |
|
#define | STM32_LSE_DRIVING 0 |
|
#define | STM32_MSIS_ENABLED 0 |
|
#define | STM32_MSIS_RANGE 0 |
|
#define | STM32_MSIS_PLL_MODE 0 |
|
#define | STM32_MSIK_ENABLED 0 |
|
#define | STM32_MSIK_RANGE 0 |
|
#define | STM32_MSIK_PLL_MODE 0 |
|
#define | STM32_CSI_FREQ 0 |
|
#define | STM32_LSI_FREQ 0 |
|
#define | STM32_HSI_DIV_ENABLED 0 |
|
#define | STM32_HSI_DIVISOR 1 |
|
#define | STM32_HSI_FREQ 0 |
|
#define | STM32_HSE_FREQ 0 |
|
#define | STM32_CLOCK_INFO(clk_index, node_id) |
|
#define | STM32_DT_CLOCKS(node_id) |
|
#define | STM32_DT_INST_CLOCKS(inst) STM32_DT_CLOCKS(DT_DRV_INST(inst)) |
|
#define | STM32_DOMAIN_CLOCK_INST_SUPPORT(inst) DT_INST_CLOCKS_HAS_IDX(inst, 1) || |
|
#define | STM32_DT_INST_DEV_DOMAIN_CLOCK_SUPPORT (DT_INST_FOREACH_STATUS_OKAY(STM32_DOMAIN_CLOCK_INST_SUPPORT) 0) |
|
#define | STM32_DOMAIN_CLOCK_SUPPORT(id) DT_CLOCKS_HAS_IDX(DT_NODELABEL(id), 1) || |
|
#define | STM32_DT_DEV_DOMAIN_CLOCK_SUPPORT (DT_FOREACH_STATUS_OKAY(STM32_DOMAIN_CLOCK_SUPPORT) 0) |
|
#define | STM32_CLOCK_REG_GET(clock) (((clock) >> STM32_CLOCK_REG_SHIFT) & STM32_CLOCK_REG_MASK) |
| Obtain register field from clock configuration. More...
|
|
#define | STM32_CLOCK_SHIFT_GET(clock) (((clock) >> STM32_CLOCK_SHIFT_SHIFT) & STM32_CLOCK_SHIFT_MASK) |
| Obtain position field from clock configuration. More...
|
|
#define | STM32_CLOCK_MASK_GET(clock) (((clock) >> STM32_CLOCK_MASK_SHIFT) & STM32_CLOCK_MASK_MASK) |
| Obtain mask field from clock configuration. More...
|
|
#define | STM32_CLOCK_VAL_GET(clock) (((clock) >> STM32_CLOCK_VAL_SHIFT) & STM32_CLOCK_VAL_MASK) |
| Obtain value field from clock configuration. More...
|
|
◆ DT_RCC_CLOCKS_CTRL
◆ STM32_AHB3_PRESCALER
◆ STM32_AHB4_PRESCALER
◆ STM32_AHB_PRESCALER
◆ STM32_APB1_PRESCALER
◆ STM32_APB2_PRESCALER
◆ STM32_APB3_PRESCALER
◆ STM32_CLOCK_CONTROL_NODE
Common clock control device node for all STM32 chips
◆ STM32_CLOCK_INFO
#define STM32_CLOCK_INFO |
( |
|
clk_index, |
|
|
|
node_id |
|
) |
| |
Value: { \
}
#define DT_CLOCKS_CELL_BY_IDX(node_id, idx, cell)
Get a clock specifier's cell value at an index.
Definition: clocks.h:207
Device tree clocks helpers
◆ STM32_CLOCK_MASK_GET
Obtain mask field from clock configuration.
- Parameters
-
clock | Clock bit field value. |
◆ STM32_CLOCK_REG_GET
Obtain register field from clock configuration.
Clock source binding accessors
- Parameters
-
clock | clock bit field value. |
◆ STM32_CLOCK_SHIFT_GET
Obtain position field from clock configuration.
- Parameters
-
clock | Clock bit field value. |
◆ STM32_CLOCK_VAL_GET
Obtain value field from clock configuration.
- Parameters
-
clock | Clock bit field value. |
◆ STM32_CPU1_PRESCALER
◆ STM32_CPU2_PRESCALER
◆ STM32_CSI_FREQ
◆ STM32_D1CPRE
◆ STM32_D1PPRE
◆ STM32_D2PPRE1
◆ STM32_D2PPRE2
◆ STM32_D3PPRE
◆ STM32_DOMAIN_CLOCK_INST_SUPPORT
◆ STM32_DOMAIN_CLOCK_SUPPORT
◆ STM32_DT_CLOCKS
#define STM32_DT_CLOCKS |
( |
|
node_id | ) |
|
Value: { \
}
#define DT_NUM_CLOCKS(node_id)
Get the number of elements in a clocks property.
Definition: clocks.h:107
#define STM32_CLOCK_INFO(clk_index, node_id)
Definition: stm32_clock_control.h:340
◆ STM32_DT_DEV_DOMAIN_CLOCK_SUPPORT
◆ STM32_DT_INST_CLOCKS
◆ STM32_DT_INST_DEV_DOMAIN_CLOCK_SUPPORT
◆ STM32_FLASH_PRESCALER
#define STM32_FLASH_PRESCALER STM32_CORE_PRESCALER |
◆ STM32_HPRE
◆ STM32_HSE_FREQ
◆ STM32_HSI_DIV_ENABLED
#define STM32_HSI_DIV_ENABLED 0 |
◆ STM32_HSI_DIVISOR
#define STM32_HSI_DIVISOR 1 |
◆ STM32_HSI_FREQ
◆ STM32_LSE_DRIVING
#define STM32_LSE_DRIVING 0 |
◆ STM32_LSE_ENABLED
#define STM32_LSE_ENABLED 0 |
PLL node related symbols PLL/PLL1 clock source PLL2 clock source PLL3 clock source Fixed clocks related symbols
◆ STM32_LSE_FREQ
◆ STM32_LSI_FREQ
◆ STM32_MSIK_ENABLED
#define STM32_MSIK_ENABLED 0 |
◆ STM32_MSIK_PLL_MODE
#define STM32_MSIK_PLL_MODE 0 |
◆ STM32_MSIK_RANGE
#define STM32_MSIK_RANGE 0 |
◆ STM32_MSIS_ENABLED
#define STM32_MSIS_ENABLED 0 |
◆ STM32_MSIS_PLL_MODE
#define STM32_MSIS_PLL_MODE 0 |
◆ STM32_MSIS_RANGE
#define STM32_MSIS_RANGE 0 |