Zephyr Project API 4.0.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
atmel_sam_pmc.h File Reference

Go to the source code of this file.

Data Structures

struct  atmel_sam_pmc_config
 

Macros

#define SAM_DT_PMC_CONTROLLER   DEVICE_DT_GET(DT_NODELABEL(pmc))
 
#define SAM_DT_CLOCK_PMC_CFG(clock_id, node_id)
 
#define SAM_DT_INST_CLOCK_PMC_CFG(inst)   SAM_DT_CLOCK_PMC_CFG(0, DT_DRV_INST(inst))
 
#define SAM_DT_CLOCKS_PMC_CFG(node_id)
 
#define SAM_DT_INST_CLOCKS_PMC_CFG(inst)    SAM_DT_CLOCKS_PMC_CFG(DT_DRV_INST(inst))
 

Macro Definition Documentation

◆ SAM_DT_CLOCK_PMC_CFG

#define SAM_DT_CLOCK_PMC_CFG (   clock_id,
  node_id 
)
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:207

◆ SAM_DT_CLOCKS_PMC_CFG

#define SAM_DT_CLOCKS_PMC_CFG (   node_id)
Value:
{ \
LISTIFY(DT_NUM_CLOCKS(node_id), \
SAM_DT_CLOCK_PMC_CFG, (,), node_id) \
}
#define SAM_DT_CLOCK_PMC_CFG(clock_id, node_id)
Definition atmel_sam_pmc.h:20
#define DT_NUM_CLOCKS(node_id)
Get the number of elements in a clocks property.
Definition clocks.h:107

◆ SAM_DT_INST_CLOCK_PMC_CFG

#define SAM_DT_INST_CLOCK_PMC_CFG (   inst)    SAM_DT_CLOCK_PMC_CFG(0, DT_DRV_INST(inst))

◆ SAM_DT_INST_CLOCKS_PMC_CFG

#define SAM_DT_INST_CLOCKS_PMC_CFG (   inst)     SAM_DT_CLOCKS_PMC_CFG(DT_DRV_INST(inst))

◆ SAM_DT_PMC_CONTROLLER

#define SAM_DT_PMC_CONTROLLER   DEVICE_DT_GET(DT_NODELABEL(pmc))