Zephyr Project API 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
mchp_clock_pic32cm_jh.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 ZEPHYR_INCLUDE_DRIVERS_CLOCK_CONTROL_MCHP_CLOCK_PIC32CM_JH_H_
17#define ZEPHYR_INCLUDE_DRIVERS_CLOCK_CONTROL_MCHP_CLOCK_PIC32CM_JH_H_
18
20
26
30 bool on_demand_en;
31
34};
35
55
67
84
105
109 CLOCK_MCHP_RTC_SRC_ULP1K = OSC32KCTRL_RTCCTRL_RTCSEL_ULP1K,
111 CLOCK_MCHP_RTC_SRC_ULP32K = OSC32KCTRL_RTCCTRL_RTCSEL_ULP32K,
113 CLOCK_MCHP_RTC_SRC_OSC1K = OSC32KCTRL_RTCCTRL_RTCSEL_OSC1K,
115 CLOCK_MCHP_RTC_SRC_OSC32K = OSC32KCTRL_RTCCTRL_RTCSEL_OSC32K,
117 CLOCK_MCHP_RTC_SRC_XOSC1K = OSC32KCTRL_RTCCTRL_RTCSEL_XOSC1K,
119 CLOCK_MCHP_RTC_SRC_XOSC32K = OSC32KCTRL_RTCCTRL_RTCSEL_XOSC32K
120};
121
126};
127
131 bool on_demand_en;
132
135};
136
145
159
166
169
172};
173
186
191};
192
204
212};
213
219
221
222#endif /* ZEPHYR_INCLUDE_DRIVERS_CLOCK_CONTROL_MCHP_CLOCK_PIC32CM_JH_H_ */
clock_mchp_osc48m_divider_freq
Control the OSC48M oscillator frequency range by adjusting the division ratio.
Definition mchp_clock_pic32cm_jh.h:37
clock_mchp_fdpll_src_clock
FDPLL source clocks.
Definition mchp_clock_pic32cm_jh.h:69
@ CLOCK_MCHP_GCLK_SRC_OSC48M
Internal 48 MHz oscillator.
Definition mchp_clock_pic32cm_jh.h:154
@ CLOCK_MCHP_GCLK_SRC_OSC32K
Internal 32 kHz oscillator.
Definition mchp_clock_pic32cm_jh.h:152
@ CLOCK_MCHP_GCLK_SRC_FDPLL
Fractional DPLL.
Definition mchp_clock_pic32cm_jh.h:155
@ CLOCK_MCHP_RTC_SRC_ULP32K
Ultra-low-power 32 kHz.
Definition mchp_clock_pic32cm_jh.h:111
@ CLOCK_MCHP_RTC_SRC_OSC32K
Internal 32 kHz.
Definition mchp_clock_pic32cm_jh.h:115
@ CLOCK_MCHP_RTC_SRC_OSC1K
Internal 1 kHz.
Definition mchp_clock_pic32cm_jh.h:113
@ CLOCK_MCHP_RTC_SRC_ULP1K
Ultra-low-power 1 kHz.
Definition mchp_clock_pic32cm_jh.h:109
@ CLOCK_MCHP_DIVIDER_5_33_MHZ
5.33 MHz output.
Definition mchp_clock_pic32cm_jh.h:46
@ CLOCK_MCHP_DIVIDER_6_MHZ
6 MHz output.
Definition mchp_clock_pic32cm_jh.h:45
@ CLOCK_MCHP_DIVIDER_3_MHZ
3 MHz output.
Definition mchp_clock_pic32cm_jh.h:53
@ CLOCK_MCHP_DIVIDER_24_MHZ
24 MHz output.
Definition mchp_clock_pic32cm_jh.h:39
@ CLOCK_MCHP_DIVIDER_4_8_MHZ
4.8 MHz output.
Definition mchp_clock_pic32cm_jh.h:47
@ CLOCK_MCHP_DIVIDER_3_69_MHZ
3.69 MHz output.
Definition mchp_clock_pic32cm_jh.h:50
@ CLOCK_MCHP_DIVIDER_12_MHZ
12 MHz output.
Definition mchp_clock_pic32cm_jh.h:41
@ CLOCK_MCHP_DIVIDER_6_86_MHZ
6.86 MHz output.
Definition mchp_clock_pic32cm_jh.h:44
@ CLOCK_MCHP_DIVIDER_8_MHZ
8 MHz output.
Definition mchp_clock_pic32cm_jh.h:43
@ CLOCK_MCHP_DIVIDER_4_MHZ
4 MHz output.
Definition mchp_clock_pic32cm_jh.h:49
@ CLOCK_MCHP_DIVIDER_3_43_MHZ
3.43 MHz output.
Definition mchp_clock_pic32cm_jh.h:51
@ CLOCK_MCHP_DIVIDER_4_36_MHZ
4.36 MHz output.
Definition mchp_clock_pic32cm_jh.h:48
@ CLOCK_MCHP_DIVIDER_48_MHZ
48 MHz output.
Definition mchp_clock_pic32cm_jh.h:38
@ CLOCK_MCHP_DIVIDER_16_MHZ
16 MHz output.
Definition mchp_clock_pic32cm_jh.h:40
@ CLOCK_MCHP_DIVIDER_3_2_MHZ
3.2 MHz output.
Definition mchp_clock_pic32cm_jh.h:52
@ CLOCK_MCHP_DIVIDER_9_6_MHZ
9.6 MHz output.
Definition mchp_clock_pic32cm_jh.h:42
@ 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_XOSC
External oscillator.
Definition mchp_clock_pic32cm_jh.h:80
@ 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_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_clock
Gclk Generator source clocks.
Definition mchp_clock_pic32ck_sg_gc.h:127
@ CLOCK_MCHP_GCLK_SRC_XOSC
External crystal oscillator (XOSC).
Definition mchp_clock_pic32ck_sg_gc.h:128
@ CLOCK_MCHP_GCLK_SRC_OSCULP32K
Internal ultra-low-power 32 kHz oscillator.
Definition mchp_clock_pic32ck_sg_gc.h:131
@ CLOCK_MCHP_GCLK_SRC_GCLKPIN
External clock input from Gclk I/O pin.
Definition mchp_clock_pic32ck_sg_gc.h:129
@ CLOCK_MCHP_GCLK_SRC_GCLKGEN1
Output of Generic Clock Generator 1.
Definition mchp_clock_pic32ck_sg_gc.h:130
@ CLOCK_MCHP_GCLK_SRC_XOSC32K
External 32.768 kHz crystal oscillator.
Definition mchp_clock_pic32ck_sg_gc.h:132
@ CLOCK_MCHP_GCLK_SRC_MAX
Maximum valid Gclk source.
Definition mchp_clock_pic32ck_sg_gc.h:141
clock_mchp_rtc_src_clock
RTC source clocks.
Definition mchp_clock_pic32ck_sg_gc.h:103
@ CLOCK_MCHP_RTC_SRC_XOSC32K
External 32.768 kHz crystal oscillator.
Definition mchp_clock_pic32ck_sg_gc.h:111
@ CLOCK_MCHP_RTC_SRC_XOSC1K
External crystal oscillator divided to 1 kHz.
Definition mchp_clock_pic32ck_sg_gc.h:109
clock_mchp_mclk_cpu_div
division ratio of mclk prescaler for CPU
Definition mchp_clock_pic32ck_sg_gc.h:165
@ CLOCK_MCHP_MCLK_CPU_DIV_64
Divide by 64.
Definition mchp_clock_pic32ck_sg_gc.h:172
@ CLOCK_MCHP_MCLK_CPU_DIV_1
Divide by 1 (no division).
Definition mchp_clock_pic32ck_sg_gc.h:166
@ CLOCK_MCHP_MCLK_CPU_DIV_32
Divide by 32.
Definition mchp_clock_pic32ck_sg_gc.h:171
@ CLOCK_MCHP_MCLK_CPU_DIV_2
Divide by 2.
Definition mchp_clock_pic32ck_sg_gc.h:167
@ CLOCK_MCHP_MCLK_CPU_DIV_8
Divide by 8.
Definition mchp_clock_pic32ck_sg_gc.h:169
@ CLOCK_MCHP_MCLK_CPU_DIV_4
Divide by 4.
Definition mchp_clock_pic32ck_sg_gc.h:168
@ CLOCK_MCHP_MCLK_CPU_DIV_16
Divide by 16.
Definition mchp_clock_pic32ck_sg_gc.h:170
@ CLOCK_MCHP_MCLK_CPU_DIV_128
Divide by 128.
Definition mchp_clock_pic32ck_sg_gc.h:173
uint32_t * clock_mchp_rate_t
clock rate datatype
Definition mchp_clock_pic32ck_sg_gc.h:189
clock_mchp_gclkgen
GCLK generator numbers.
Definition mchp_clock_pic32ck_sg_gc.h:27
@ CLOCK_MCHP_GCLKGEN_GEN0
Gclk Generator 0.
Definition mchp_clock_pic32ck_sg_gc.h:28
@ CLOCK_MCHP_GCLKGEN_GEN5
Gclk Generator 5.
Definition mchp_clock_pic32ck_sg_gc.h:33
@ CLOCK_MCHP_GCLKGEN_GEN3
Gclk Generator 3.
Definition mchp_clock_pic32ck_sg_gc.h:31
@ CLOCK_MCHP_GCLKGEN_GEN4
Gclk Generator 4.
Definition mchp_clock_pic32ck_sg_gc.h:32
@ CLOCK_MCHP_GCLKGEN_GEN7
Gclk Generator 7.
Definition mchp_clock_pic32ck_sg_gc.h:35
@ CLOCK_MCHP_GCLKGEN_GEN1
Gclk Generator 1.
Definition mchp_clock_pic32ck_sg_gc.h:29
@ CLOCK_MCHP_GCLKGEN_GEN6
Gclk Generator 6.
Definition mchp_clock_pic32ck_sg_gc.h:34
@ CLOCK_MCHP_GCLKGEN_GEN2
Gclk Generator 2.
Definition mchp_clock_pic32ck_sg_gc.h:30
@ CLOCK_MCHP_GCLKGEN_GEN8
Gclk Generator 8.
Definition mchp_clock_pic32ck_sg_gc.h:36
List clock subsystem IDs for pic32cm_jh family.
__UINT32_TYPE__ uint32_t
Definition stdint.h:90
__UINT16_TYPE__ uint16_t
Definition stdint.h:89
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 structure.
Definition mchp_clock_pic32ck_sg_gc.h:145
bool run_in_standby_en
configure oscillator to ON in standby sleep mode, unless on_demand_en is set
Definition mchp_clock_pic32ck_sg_gc.h:152
enum clock_mchp_gclk_src_clock src
Generator source clock selection.
Definition mchp_clock_pic32ck_sg_gc.h:155
uint16_t div_factor
Represent a division value for the corresponding Generator.
Definition mchp_clock_pic32ck_sg_gc.h:149
Gclk Peripheral configuration structure.
Definition mchp_clock_pic32ck_sg_gc.h:159
enum clock_mchp_gclkgen src
gclk generator source of a peripheral clock
Definition mchp_clock_pic32ck_sg_gc.h:161
MCLK configuration structure.
Definition mchp_clock_pic32ck_sg_gc.h:180
enum clock_mchp_mclk_cpu_div division_factor
division ratio of mclk prescaler for CPU
Definition mchp_clock_pic32ck_sg_gc.h:182
32 kHz internal oscillator (OSC32K) configuration.
Definition mchp_clock_pic32cm_jh.h:138
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:143
bool on_demand_en
Turn the oscillator ON when a peripheral requests it as a source.
Definition mchp_clock_pic32cm_jh.h:140
Internal 48 MHz oscillator (OSC48M) configuration.
Definition mchp_clock_pic32cm_jh.h:57
bool on_demand_en
Turn the oscillator ON when a peripheral requests it as a source.
Definition mchp_clock_pic32cm_jh.h:59
enum clock_mchp_osc48m_divider_freq post_divider_freq
Control the oscillator frequency range by adjusting the division ratio.
Definition mchp_clock_pic32cm_jh.h:65
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:62
RTC configuration structure.
Definition mchp_clock_pic32ck_sg_gc.h:115
enum clock_mchp_rtc_src_clock src
RTC source clock selection.
Definition mchp_clock_pic32ck_sg_gc.h:117
External 32.768 kHz crystal oscillator configuration structure.
Definition mchp_clock_pic32ck_sg_gc.h:121
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
configure oscillator to ON, when a peripheral is requesting it as a source
Definition mchp_clock_pic32ck_sg_gc.h:123
External Crystal Oscillator configuration structure.
Definition mchp_clock_pic32ck_sg_gc.h:21
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
configure oscillator to ON, when a peripheral is requesting it as a source
Definition mchp_clock_pic32ck_sg_gc.h:23