Zephyr API Documentation 4.3.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
renesas_rx_cgc.h File Reference

Renesas RX Clock Generator Circuit (CGC) header file. More...

Go to the source code of this file.

Data Structures

struct  clock_control_rx_pclk_cfg
 Peripheral clock configuration (PCLK). More...
struct  clock_control_rx_subsys_cfg
 Subsystem clock control configuration. More...
struct  clock_control_rx_pll_cfg
 PLL configuration structure. More...
struct  clock_control_rx_pll_data
 PLL control parameters. More...
struct  clock_control_rx_root_cfg
 Root clock configuration. More...

Macros

Clock source and divider helpers for Renesas RX devices.
#define RX_CGC_PROP_HAS_STATUS_OKAY_OR(node_id, prop, default_value)
 Conditional property getter based on devicetree status.
#define RX_CGC_CLK_SRC(node_id)
 Helper to get clock source form device tree.
#define RX_IF_CLK_SRC(node_id)
 Helper to get IF clock source form device tree.
#define RX_LPT_CLK_SRC(node_id)
 Helper to get LPT clock source form device tree.
#define RX_CGC_PLL_CLK_SRC(node_id)
 Helper to get PLL clock source form device tree.

Detailed Description

Renesas RX Clock Generator Circuit (CGC) header file.

Macro Definition Documentation

◆ RX_CGC_CLK_SRC

#define RX_CGC_CLK_SRC ( node_id)
Value:
COND_CODE_1(DT_NODE_HAS_STATUS(node_id, okay), \
(UTIL_CAT(RX_CLOCKS_SOURCE_, DT_NODE_FULL_NAME_UPPER_TOKEN(node_id))), \
(RX_CLOCKS_CLOCK_DISABLED))
#define DT_NODE_HAS_STATUS(node_id, status)
Does a node identifier refer to a node with a status?
Definition devicetree.h:3715
#define DT_NODE_FULL_NAME_UPPER_TOKEN(node_id)
Like DT_NODE_FULL_NAME_TOKEN(), but uppercased.
Definition devicetree.h:659
#define COND_CODE_1(_flag, _if_1_code, _else_code)
Insert code depending on whether _flag expands to 1 or not.
Definition util_macro.h:203
#define UTIL_CAT(a,...)
Definition util_internal.h:145

Helper to get clock source form device tree.

Expands to a RX_CLOCKS_SOURCE_* constant when the node is enabled, or RX_CLOCKS_CLOCK_DISABLED otherwise.

◆ RX_CGC_PLL_CLK_SRC

#define RX_CGC_PLL_CLK_SRC ( node_id)
Value:
COND_CODE_1(DT_NODE_HAS_STATUS(node_id, okay), \
(UTIL_CAT(RX_PLL_CLOCKS_SOURCE_, DT_NODE_FULL_NAME_UPPER_TOKEN(node_id))), \
(RX_CLOCKS_CLOCK_DISABLED))

Helper to get PLL clock source form device tree.

Expands to a RX_PLL_CLOCKS_SOURCE_* constant when the node is enabled, or RX_CLOCKS_CLOCK_DISABLED otherwise.

◆ RX_CGC_PROP_HAS_STATUS_OKAY_OR

#define RX_CGC_PROP_HAS_STATUS_OKAY_OR ( node_id,
prop,
default_value )
Value:
COND_CODE_1(DT_NODE_HAS_STATUS(node_id, okay), (DT_PROP(node_id, prop)), (default_value))
#define DT_PROP(node_id, prop)
Get a devicetree property value.
Definition devicetree.h:798

Conditional property getter based on devicetree status.

Returns the value of a devicetree property if the node is marked as okay. Otherwise, the provided default value is used.

◆ RX_IF_CLK_SRC

#define RX_IF_CLK_SRC ( node_id)
Value:
(UTIL_CAT(RX_IF_CLOCKS_SOURCE_, DT_NODE_FULL_NAME_UPPER_TOKEN(node_id))),\
(RX_CLOCKS_CLOCK_DISABLED))

Helper to get IF clock source form device tree.

Expands to a RX_IF_CLOCKS_SOURCE_* constant when the node is enabled, or RX_CLOCKS_CLOCK_DISABLED otherwise.

◆ RX_LPT_CLK_SRC

#define RX_LPT_CLK_SRC ( node_id)
Value:
(UTIL_CAT(RX_LPT_CLOCKS_SOURCE_, DT_NODE_FULL_NAME_UPPER_TOKEN(node_id))),\
#define RX_LPT_CLOCKS_NON_USE
Not use.
Definition rx_clock.h:50

Helper to get LPT clock source form device tree.

Expands to a RX_LPT_CLOCKS_SOURCE_* constant when the node is enabled, or RX_LPT_CLOCKS_NON_USE otherwise.