Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches

Clock control definitions for Infineon CAT1 (PSoC 6 family) devices. More...

#include <cy_sysclk.h>
#include <cy_systick.h>

Go to the source code of this file.

Data Structures

struct  ifx_cat1_clock
 CAT1 clock descriptor. More...
struct  ifx_cat1_resource_inst
 CAT1 resource instance descriptor. More...

Macros

High frequency (HF) clock indices
#define CLK_HF0   (0U)
 HF clock 0.
#define CLK_HF1   (1U)
 HF clock 1.
#define CLK_HF2   (2U)
 HF clock 2.
#define CLK_HF3   (3U)
 HF clock 3.
#define CLK_HF4   (4U)
 HF clock 4.
#define CLK_HF5   (5U)
 HF clock 5.
#define CLK_HF6   (6U)
 HF clock 6.
#define CLK_HF7   (7U)
 HF clock 7.
#define CLK_HF8   (8U)
 HF clock 8.
#define CLK_HF9   (9U)
 HF clock 9.
#define CLK_HF10   (10U)
 HF clock 10.
#define CLK_HF11   (11U)
 HF clock 11.
#define CLK_HF12   (12U)
 HF clock 12.
#define CLK_HF13   (13U)
 HF clock 13.

Enumerations

enum  ifx_cat1_clock_block
 CAT1 clock block (source or domain) selector. More...

Functions

int ifx_cat1_clock_control_get_frequency (uint32_t dt_ord, uint32_t *frequency)
 Get the frequency of a clock identified by its Devicetree ordinal.
static uint32_t ifx_cat1_utils_peri_pclk_get_frequency (en_clk_dst_t clk_dest, const struct ifx_cat1_clock *_clock)
 Get the frequency of a peripheral clock divider.
static cy_rslt_t ifx_cat1_utils_peri_pclk_enable_divider (en_clk_dst_t clk_dest, const struct ifx_cat1_clock *_clock)
 Enable the divider associated with a peripheral clock.
static cy_rslt_t ifx_cat1_utils_peri_pclk_set_divider (en_clk_dst_t clk_dest, const struct ifx_cat1_clock *_clock, uint32_t div)
 Set the integer divider for a peripheral clock.
static cy_rslt_t ifx_cat1_utils_peri_pclk_set_frac_divider (en_clk_dst_t clk_dest, const struct ifx_cat1_clock *_clock, uint32_t div_int, uint32_t div_frac)
 Set the fractional divider for a peripheral clock.
static cy_rslt_t ifx_cat1_utils_peri_pclk_assign_divider (en_clk_dst_t clk_dest, const struct ifx_cat1_clock *_clock)
 Assign a divider to a peripheral clock destination.
static uint8_t ifx_cat1_utils_peri_pclk_get_hfclk (uint8_t peri_group)
 Map a peripheral group index to the HF clock that sources it.

Detailed Description

Clock control definitions for Infineon CAT1 (PSoC 6 family) devices.