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

Files

file  atmel_sam_pmc.h
 Power Management Controller (PMC) clock helpers for Atmel SAM devices.

Data Structures

struct  atmel_sam_pmc_config
 PMC clock configuration for a single peripheral clock. More...

Macros

#define SAM_DT_PMC_CONTROLLER   DEVICE_DT_GET(DT_NODELABEL(pmc))
 Device pointer to the PMC clock controller.
#define SAM_DT_CLOCK_PMC_CFG(clock_id, node_id)
 Initialize an atmel_sam_pmc_config from a clock specifier.
#define SAM_DT_INST_CLOCK_PMC_CFG(inst)
 Equivalent to SAM_DT_CLOCK_PMC_CFG() for the first clock of a DT instance.
#define SAM_DT_CLOCKS_PMC_CFG(node_id)
 Initialize an array of atmel_sam_pmc_config for all clocks of a node.
#define SAM_DT_INST_CLOCKS_PMC_CFG(inst)
 Equivalent to SAM_DT_CLOCKS_PMC_CFG() for a DT instance.

Detailed Description

Macro Definition Documentation

◆ SAM_DT_CLOCK_PMC_CFG

#define SAM_DT_CLOCK_PMC_CFG ( clock_id,
node_id )

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

Value:
{ \
.clock_type = DT_CLOCKS_CELL_BY_IDX(node_id, clock_id, clock_type), \
.peripheral_id = DT_CLOCKS_CELL_BY_IDX(node_id, clock_id, peripheral_id)\
}
#define DT_CLOCKS_CELL_BY_IDX(node_id, idx, cell)
Get a clock specifier's cell value at an index.
Definition clocks.h:208

Initialize an atmel_sam_pmc_config from a clock specifier.

Parameters
clock_idIndex of the clock specifier within the node's clocks property.
node_idDevicetree node identifier owning the clocks property.

◆ SAM_DT_CLOCKS_PMC_CFG

#define SAM_DT_CLOCKS_PMC_CFG ( node_id)

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

Value:
{ \
LISTIFY(DT_NUM_CLOCKS(node_id), \
SAM_DT_CLOCK_PMC_CFG, (,), node_id) \
}
#define SAM_DT_CLOCK_PMC_CFG(clock_id, node_id)
Initialize an atmel_sam_pmc_config from a clock specifier.
Definition atmel_sam_pmc.h:40
#define DT_NUM_CLOCKS(node_id)
Get the number of elements in a clocks property.
Definition clocks.h:108

Initialize an array of atmel_sam_pmc_config for all clocks of a node.

Parameters
node_idDevicetree node identifier owning the clocks property.

◆ SAM_DT_INST_CLOCK_PMC_CFG

#define SAM_DT_INST_CLOCK_PMC_CFG ( inst)

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

Value:
#define DT_DRV_INST(inst)
Node identifier for an instance of a DT_DRV_COMPAT compatible.
Definition devicetree.h:4333

Equivalent to SAM_DT_CLOCK_PMC_CFG() for the first clock of a DT instance.

Parameters
instDT instance number.

◆ SAM_DT_INST_CLOCKS_PMC_CFG

#define SAM_DT_INST_CLOCKS_PMC_CFG ( inst)

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

Value:
#define SAM_DT_CLOCKS_PMC_CFG(node_id)
Initialize an array of atmel_sam_pmc_config for all clocks of a node.
Definition atmel_sam_pmc.h:58

Equivalent to SAM_DT_CLOCKS_PMC_CFG() for a DT instance.

Parameters
instDT instance number.

◆ SAM_DT_PMC_CONTROLLER

#define SAM_DT_PMC_CONTROLLER   DEVICE_DT_GET(DT_NODELABEL(pmc))

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

Device pointer to the PMC clock controller.