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

Topics

 Renesas RA BSP Clock Clkout Divider Constants
 PCLK clock source.
 Renesas RA BSP Clock Source Constants
 Renesas RA BSP clock source constants.
 Renesas RA Clock Divider Generators
 Divider generator macros for multiple clock domains.

Files

file  renesas_ra_cgc.h
 Renesas RA Clock Generator Circuit (CGC) header file.

Data Structures

struct  clock_control_ra_pclk_cfg
 Peripheral clock configuration. More...
struct  clock_control_ra_subsys_cfg
 Subsystem clock control configuration. More...

Macros

#define RA_CGC_PROP_HAS_STATUS_OKAY_OR(node_id, prop, default_value)
 Conditional property getter based on devicetree status.
#define RA_CGC_CLK_SRC(node_id)
 Helper to get clock source form device tree.
#define RA_CGC_CLK_DIV(clk, prop, default_value)
 Helper to compute a clock divider.

Detailed Description

Macro Definition Documentation

◆ RA_CGC_CLK_DIV

#define RA_CGC_CLK_DIV ( clk,
prop,
default_value )

#include <zephyr/drivers/clock_control/renesas_ra_cgc.h>

Value:
(RA_CGC_PROP_HAS_STATUS_OKAY_OR(clk, prop, default_value))
#define RA_CGC_PROP_HAS_STATUS_OKAY_OR(node_id, prop, default_value)
Conditional property getter based on devicetree status.
Definition renesas_ra_cgc.h:31
#define DT_NODE_FULL_NAME_UPPER_TOKEN(node_id)
Like DT_NODE_FULL_NAME_TOKEN(), but uppercased.
Definition devicetree.h:710
#define UTIL_CAT(a,...)
Definition util_internal.h:145

Helper to compute a clock divider.

This macro expands to a RA_CGC_DIV_* prefix combined with a devicetree value.

◆ RA_CGC_CLK_SRC

#define RA_CGC_CLK_SRC ( node_id)

#include <zephyr/drivers/clock_control/renesas_ra_cgc.h>

Value:
(UTIL_CAT(BSP_CLOCKS_SOURCE_, DT_NODE_FULL_NAME_UPPER_TOKEN(node_id))), \
(BSP_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:3963
#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:209

Helper to get clock source form device tree.

Expands to a BSP_CLOCKS_SOURCE_* constant when the node is enabled, or BSP_CLOCKS_CLOCK_DISABLED otherwise.

◆ RA_CGC_PROP_HAS_STATUS_OKAY_OR

#define RA_CGC_PROP_HAS_STATUS_OKAY_OR ( node_id,
prop,
default_value )

#include <zephyr/drivers/clock_control/renesas_ra_cgc.h>

Value:
(DT_PROP(node_id, prop)), (default_value))
#define DT_PROP(node_id, prop)
Get a devicetree property value.
Definition devicetree.h:873

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.