7#ifndef ZEPHYR_INCLUDE_DRIVERS_CLOCK_CONTROL_ATMEL_SAM_PMC_H_ 
    8#define ZEPHYR_INCLUDE_DRIVERS_CLOCK_CONTROL_ATMEL_SAM_PMC_H_ 
   13#define SAM_DT_PMC_CONTROLLER DEVICE_DT_GET(DT_NODELABEL(pmc)) 
   20#define SAM_DT_CLOCK_PMC_CFG(clock_id, node_id)                                 \ 
   22        .clock_type = DT_CLOCKS_CELL_BY_IDX(node_id, clock_id, clock_type),     \ 
   23        .peripheral_id = DT_CLOCKS_CELL_BY_IDX(node_id, clock_id, peripheral_id)\ 
   26#define SAM_DT_INST_CLOCK_PMC_CFG(inst) SAM_DT_CLOCK_PMC_CFG(0, DT_DRV_INST(inst)) 
   28#define SAM_DT_CLOCKS_PMC_CFG(node_id)                                          \ 
   30                LISTIFY(DT_NUM_CLOCKS(node_id),                                 \ 
   31                        SAM_DT_CLOCK_PMC_CFG, (,), node_id)                     \ 
   34#define SAM_DT_INST_CLOCKS_PMC_CFG(inst)                                        \ 
   35        SAM_DT_CLOCKS_PMC_CFG(DT_DRV_INST(inst)) 
Public Clock Control APIs.
 
__UINT32_TYPE__ uint32_t
Definition: stdint.h:90
 
Definition: atmel_sam_pmc.h:15
 
uint32_t clock_type
Definition: atmel_sam_pmc.h:16
 
uint32_t peripheral_id
Definition: atmel_sam_pmc.h:17