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

Files

file  clock_control_silabs.h
 Clock control definitions for Silicon Labs devices.

Data Structures

struct  silabs_clock_control_cmu_config
 Clock Management Unit (CMU) clock configuration for a peripheral. More...

Macros

#define SILABS_DT_CLOCK_CFG(node_id)
 Initialize a silabs_clock_control_cmu_config from a DT node.
#define SILABS_DT_INST_CLOCK_CFG(inst)
 Equivalent to SILABS_DT_CLOCK_CFG() for a DT instance.
#define SILABS_DT_CLOCK_CFG_BY_NAME(node_id, name)
 Initialize a silabs_clock_control_cmu_config from a DT node by name.
#define SILABS_DT_INST_CLOCK_CFG_BY_NAME(inst, name)
 Equivalent to SILABS_DT_CLOCK_CFG_BY_NAME() for a DT instance.

Detailed Description

Macro Definition Documentation

◆ SILABS_DT_CLOCK_CFG

#define SILABS_DT_CLOCK_CFG ( node_id)

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

Value:
{ \
.bus_clock = DT_CLOCKS_CELL(node_id, enable), \
.branch = DT_CLOCKS_CELL(node_id, branch), \
}
#define DT_CLOCKS_CELL(node_id, cell)
Equivalent to DT_CLOCKS_CELL_BY_IDX(node_id, 0, cell).
Definition clocks.h:252

Initialize a silabs_clock_control_cmu_config from a DT node.

Parameters
node_idDevicetree node identifier with a clocks property.

◆ SILABS_DT_CLOCK_CFG_BY_NAME

#define SILABS_DT_CLOCK_CFG_BY_NAME ( node_id,
name )

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

Value:
{ \
.bus_clock = DT_CLOCKS_CELL_BY_NAME(node_id, name, enable), \
.branch = DT_CLOCKS_CELL_BY_NAME(node_id, name, branch), \
}
#define DT_CLOCKS_CELL_BY_NAME(node_id, name, cell)
Get a clock specifier's cell value by name.
Definition clocks.h:242

Initialize a silabs_clock_control_cmu_config from a DT node by name.

Parameters
node_idDevicetree node identifier with a clocks property.
namelowercase-and-underscores name of a clocks element defined by the node's clock-names property

◆ SILABS_DT_INST_CLOCK_CFG

#define SILABS_DT_INST_CLOCK_CFG ( inst)

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

Value:
{ \
.bus_clock = DT_INST_CLOCKS_CELL(inst, enable), \
.branch = DT_INST_CLOCKS_CELL(inst, branch), \
}
#define DT_INST_CLOCKS_CELL(inst, cell)
Equivalent to DT_INST_CLOCKS_CELL_BY_IDX(inst, 0, cell).
Definition clocks.h:345

Equivalent to SILABS_DT_CLOCK_CFG() for a DT instance.

Parameters
instDT instance number.

◆ SILABS_DT_INST_CLOCK_CFG_BY_NAME

#define SILABS_DT_INST_CLOCK_CFG_BY_NAME ( inst,
name )

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

Value:
{ \
.bus_clock = DT_INST_CLOCKS_CELL_BY_NAME(inst, name, enable), \
.branch = DT_INST_CLOCKS_CELL_BY_NAME(inst, name, branch), \
}
#define DT_INST_CLOCKS_CELL_BY_NAME(inst, name, cell)
Get a DT_DRV_COMPAT instance's clock specifier's cell value by name.
Definition clocks.h:336

Equivalent to SILABS_DT_CLOCK_CFG_BY_NAME() for a DT instance.

Parameters
instDT instance number.
namelowercase-and-underscores name of a clocks element defined by the node's clock-names property