Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
mchp_clock_sam_d5x_e5x.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2025 Microchip Technology Inc.
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
15
16#ifndef INCLUDE_ZEPHYR_DRIVERS_CLOCK_CONTROL_MCHP_CLOCK_SAM_D5X_E5X_H_
17#define INCLUDE_ZEPHYR_DRIVERS_CLOCK_CONTROL_MCHP_CLOCK_SAM_D5X_E5X_H_
18
20
26
30 bool on_demand_en;
31
34};
35
51
71
92
96 bool on_demand_en;
97
100
103
106
109
112};
113
117 CLOCK_MCHP_RTC_SRC_ULP1K = OSC32KCTRL_RTCCTRL_RTCSEL_ULP1K,
119 CLOCK_MCHP_RTC_SRC_ULP32K = OSC32KCTRL_RTCCTRL_RTCSEL_ULP32K,
121 CLOCK_MCHP_RTC_SRC_XOSC1K = OSC32KCTRL_RTCCTRL_RTCSEL_XOSC1K,
123 CLOCK_MCHP_RTC_SRC_XOSC32K = OSC32KCTRL_RTCCTRL_RTCSEL_XOSC32K
124};
125
130};
131
135 bool on_demand_en;
136
139};
140
155
160
163
168};
169
174};
175
187
195};
196
202
204
205#endif /* INCLUDE_ZEPHYR_DRIVERS_CLOCK_CONTROL_MCHP_CLOCK_SAM_D5X_E5X_H_ */
clock_mchp_gclk_src_clock
GCLK generator source clocks.
Definition mchp_clock_pic32cm_jh.h:147
clock_mchp_rtc_src_clock
RTC source clocks.
Definition mchp_clock_pic32cm_jh.h:107
clock_mchp_mclk_cpu_div
Division ratio of the MCLK prescaler for the CPU.
Definition mchp_clock_pic32cm_jh.h:194
uint32_t * clock_mchp_rate_t
Clock rate datatype.
Definition mchp_clock_pic32cm_jh.h:218
clock_mchp_gclkgen
GCLK generator numbers.
Definition mchp_clock_pic32cm_jh.h:175
clock_mchp_fdpll_src_clock
FDPLL source clocks.
Definition mchp_clock_pic32cm_jh.h:69
@ CLOCK_MCHP_GCLK_SRC_OSCULP32K
Ultra-low-power 32 kHz oscillator.
Definition mchp_clock_pic32cm_jh.h:151
@ CLOCK_MCHP_GCLK_SRC_GCLKPIN
GCLK input pin.
Definition mchp_clock_pic32cm_jh.h:149
@ CLOCK_MCHP_GCLK_SRC_GCLKGEN1
GCLK generator 1.
Definition mchp_clock_pic32cm_jh.h:150
@ CLOCK_MCHP_GCLK_SRC_XOSC32K
External 32 kHz oscillator.
Definition mchp_clock_pic32cm_jh.h:153
@ CLOCK_MCHP_GCLK_SRC_MAX
Highest valid source.
Definition mchp_clock_pic32cm_jh.h:157
@ CLOCK_MCHP_RTC_SRC_XOSC32K
External 32 kHz.
Definition mchp_clock_pic32cm_jh.h:119
@ CLOCK_MCHP_RTC_SRC_ULP32K
Ultra-low-power 32 kHz.
Definition mchp_clock_pic32cm_jh.h:111
@ CLOCK_MCHP_RTC_SRC_XOSC1K
External 1 kHz.
Definition mchp_clock_pic32cm_jh.h:117
@ CLOCK_MCHP_RTC_SRC_ULP1K
Ultra-low-power 1 kHz.
Definition mchp_clock_pic32cm_jh.h:109
@ CLOCK_MCHP_MCLK_CPU_DIV_64
Divide by 64.
Definition mchp_clock_pic32cm_jh.h:201
@ CLOCK_MCHP_MCLK_CPU_DIV_1
Divide by 1.
Definition mchp_clock_pic32cm_jh.h:195
@ CLOCK_MCHP_MCLK_CPU_DIV_32
Divide by 32.
Definition mchp_clock_pic32cm_jh.h:200
@ CLOCK_MCHP_MCLK_CPU_DIV_2
Divide by 2.
Definition mchp_clock_pic32cm_jh.h:196
@ CLOCK_MCHP_MCLK_CPU_DIV_8
Divide by 8.
Definition mchp_clock_pic32cm_jh.h:198
@ CLOCK_MCHP_MCLK_CPU_DIV_4
Divide by 4.
Definition mchp_clock_pic32cm_jh.h:197
@ CLOCK_MCHP_MCLK_CPU_DIV_16
Divide by 16.
Definition mchp_clock_pic32cm_jh.h:199
@ CLOCK_MCHP_MCLK_CPU_DIV_128
Divide by 128.
Definition mchp_clock_pic32cm_jh.h:202
@ CLOCK_MCHP_GCLKGEN_GEN0
Generator 0.
Definition mchp_clock_pic32cm_jh.h:176
@ CLOCK_MCHP_GCLKGEN_GEN5
Generator 5.
Definition mchp_clock_pic32cm_jh.h:181
@ CLOCK_MCHP_GCLKGEN_GEN3
Generator 3.
Definition mchp_clock_pic32cm_jh.h:179
@ CLOCK_MCHP_GCLKGEN_GEN4
Generator 4.
Definition mchp_clock_pic32cm_jh.h:180
@ CLOCK_MCHP_GCLKGEN_GEN7
Generator 7.
Definition mchp_clock_pic32cm_jh.h:183
@ CLOCK_MCHP_GCLKGEN_GEN1
Generator 1.
Definition mchp_clock_pic32cm_jh.h:177
@ CLOCK_MCHP_GCLKGEN_GEN6
Generator 6.
Definition mchp_clock_pic32cm_jh.h:182
@ CLOCK_MCHP_GCLKGEN_GEN2
Generator 2.
Definition mchp_clock_pic32cm_jh.h:178
@ CLOCK_MCHP_GCLKGEN_GEN8
Generator 8.
Definition mchp_clock_pic32cm_jh.h:184
@ CLOCK_MCHP_FDPLL_SRC_GCLK7
GCLK generator 7.
Definition mchp_clock_pic32cm_jh.h:77
@ CLOCK_MCHP_FDPLL_SRC_GCLK0
GCLK generator 0.
Definition mchp_clock_pic32cm_jh.h:70
@ CLOCK_MCHP_FDPLL_SRC_GCLK5
GCLK generator 5.
Definition mchp_clock_pic32cm_jh.h:75
@ CLOCK_MCHP_FDPLL_SRC_GCLK3
GCLK generator 3.
Definition mchp_clock_pic32cm_jh.h:73
@ CLOCK_MCHP_FDPLL_SRC_GCLK4
GCLK generator 4.
Definition mchp_clock_pic32cm_jh.h:74
@ CLOCK_MCHP_FDPLL_SRC_XOSC32K
32 kHz external oscillator.
Definition mchp_clock_pic32cm_jh.h:79
@ CLOCK_MCHP_FDPLL_SRC_GCLK2
GCLK generator 2.
Definition mchp_clock_pic32cm_jh.h:72
@ CLOCK_MCHP_FDPLL_SRC_MAX
Highest valid source.
Definition mchp_clock_pic32cm_jh.h:82
@ CLOCK_MCHP_FDPLL_SRC_GCLK8
GCLK generator 8.
Definition mchp_clock_pic32cm_jh.h:78
@ CLOCK_MCHP_FDPLL_SRC_GCLK6
GCLK generator 6.
Definition mchp_clock_pic32cm_jh.h:76
@ CLOCK_MCHP_FDPLL_SRC_GCLK1
GCLK generator 1.
Definition mchp_clock_pic32cm_jh.h:71
@ CLOCK_MCHP_GCLKGEN_GEN10
Gclk Generator 10.
Definition mchp_clock_pic32cz_ca.h:45
@ CLOCK_MCHP_GCLKGEN_GEN11
Gclk Generator 11.
Definition mchp_clock_pic32cz_ca.h:46
@ CLOCK_MCHP_GCLKGEN_GEN9
Gclk Generator 9.
Definition mchp_clock_pic32cz_ca.h:44
clock_mchp_gclk_src_clock
GCLK generator source clocks.
Definition mchp_clock_sam_d5x_e5x.h:142
clock_mchp_rtc_src_clock
RTC source clocks.
Definition mchp_clock_sam_d5x_e5x.h:115
clock_mchp_mclk_cpu_div
Division ratio of the MCLK prescaler for the CPU.
Definition mchp_clock_sam_d5x_e5x.h:177
clock_mchp_gclkgen
GCLK generator numbers.
Definition mchp_clock_sam_d5x_e5x.h:37
clock_mchp_fdpll_src_clock
FDPLL source clocks.
Definition mchp_clock_sam_d5x_e5x.h:73
@ CLOCK_MCHP_GCLK_SRC_XOSC0
External oscillator 0.
Definition mchp_clock_sam_d5x_e5x.h:143
@ CLOCK_MCHP_GCLK_SRC_FDPLL0
Fractional DPLL 0.
Definition mchp_clock_sam_d5x_e5x.h:150
@ CLOCK_MCHP_GCLK_SRC_DFLL
DFLL.
Definition mchp_clock_sam_d5x_e5x.h:149
@ CLOCK_MCHP_GCLK_SRC_FDPLL1
Fractional DPLL 1.
Definition mchp_clock_sam_d5x_e5x.h:151
@ CLOCK_MCHP_GCLK_SRC_XOSC1
External oscillator 1.
Definition mchp_clock_sam_d5x_e5x.h:144
@ CLOCK_MCHP_FDPLL_SRC_XOSC0
External oscillator 0.
Definition mchp_clock_sam_d5x_e5x.h:87
@ CLOCK_MCHP_FDPLL_SRC_XOSC1
External oscillator 1.
Definition mchp_clock_sam_d5x_e5x.h:88
@ CLOCK_MCHP_FDPLL_SRC_GCLK10
GCLK generator 10.
Definition mchp_clock_sam_d5x_e5x.h:84
@ CLOCK_MCHP_FDPLL_SRC_GCLK11
GCLK generator 11.
Definition mchp_clock_sam_d5x_e5x.h:85
@ CLOCK_MCHP_FDPLL_SRC_GCLK9
GCLK generator 9.
Definition mchp_clock_sam_d5x_e5x.h:83
List clock subsystem IDs for sam_d5x_e5x family.
__UINT32_TYPE__ uint32_t
Definition stdint.h:90
__UINT16_TYPE__ uint16_t
Definition stdint.h:89
DFLL configuration.
Definition mchp_clock_sam_d5x_e5x.h:53
bool on_demand_en
Turn the oscillator ON when a peripheral requests it as a source.
Definition mchp_clock_sam_d5x_e5x.h:55
bool run_in_standby_en
Keep the oscillator ON in standby sleep mode, unless on_demand_en is set.
Definition mchp_clock_sam_d5x_e5x.h:58
uint32_t multiply_factor
Ratio of the CLK_DFLL output frequency to the CLK_DFLL_REF input frequency (0 - 65535).
Definition mchp_clock_sam_d5x_e5x.h:69
bool closed_loop_en
Enable closed-loop operation.
Definition mchp_clock_sam_d5x_e5x.h:61
enum clock_mchp_gclkgen src
Reference source clock selection.
Definition mchp_clock_sam_d5x_e5x.h:64
Fractional DPLL (FDPLL) configuration.
Definition mchp_clock_pic32cm_jh.h:86
bool on_demand_en
Turn the oscillator ON when a peripheral requests it as a source.
Definition mchp_clock_pic32cm_jh.h:88
uint32_t xosc_clock_divider
XOSC clock division factor (0 - 2047).
Definition mchp_clock_pic32cm_jh.h:100
uint32_t divider_ratio_int
Integer part of the frequency multiplier (0 - 4095).
Definition mchp_clock_pic32cm_jh.h:97
enum clock_mchp_fdpll_src_clock src
Reference source clock selection.
Definition mchp_clock_pic32cm_jh.h:103
uint32_t divider_ratio_frac
Fractional part of the frequency multiplier (0 - 31).
Definition mchp_clock_pic32cm_jh.h:94
bool run_in_standby_en
Keep the oscillator ON in standby sleep mode, unless on_demand_en is set.
Definition mchp_clock_pic32cm_jh.h:91
GCLK generator configuration.
Definition mchp_clock_pic32cm_jh.h:161
bool run_in_standby_en
Keep the generator running in standby sleep mode, unless on_demand_en is set.
Definition mchp_clock_pic32cm_jh.h:168
enum clock_mchp_gclk_src_clock src
Generator source clock selection.
Definition mchp_clock_pic32cm_jh.h:171
uint16_t div_factor
Division value for the generator.
Definition mchp_clock_pic32cm_jh.h:165
Peripheral GCLK channel configuration.
Definition mchp_clock_pic32cm_jh.h:188
enum clock_mchp_gclkgen src
GCLK generator that sources the peripheral clock.
Definition mchp_clock_pic32cm_jh.h:190
MCLK configuration structure.
Definition mchp_clock_pic32cm_jh.h:209
enum clock_mchp_mclk_cpu_div division_factor
Division ratio of the MCLK prescaler for the CPU.
Definition mchp_clock_pic32cm_jh.h:211
RTC clock configuration.
Definition mchp_clock_pic32cm_jh.h:123
enum clock_mchp_rtc_src_clock src
RTC source clock selection.
Definition mchp_clock_pic32cm_jh.h:125
32 kHz external oscillator (XOSC32K) configuration.
Definition mchp_clock_pic32cm_jh.h:129
bool run_in_standby_en
Keep the oscillator ON in standby sleep mode, unless on_demand_en is set.
Definition mchp_clock_pic32cm_jh.h:134
bool on_demand_en
Turn the oscillator ON when a peripheral requests it as a source.
Definition mchp_clock_pic32cm_jh.h:131
External oscillator (XOSC) configuration.
Definition mchp_clock_pic32cm_jh.h:28
bool run_in_standby_en
Keep the oscillator ON in standby sleep mode, unless on_demand_en is set.
Definition mchp_clock_pic32cm_jh.h:33
bool on_demand_en
Turn the oscillator ON when a peripheral requests it as a source.
Definition mchp_clock_pic32cm_jh.h:30