9#ifndef _HARDWARE_STRUCTS_CLOCKS_H
10#define _HARDWARE_STRUCTS_CLOCKS_H
13#include "hardware/regs/clocks.h"
44 _REG_(CLOCKS_CLK_GPOUT0_CTRL_OFFSET)
54 _REG_(CLOCKS_CLK_GPOUT0_DIV_OFFSET)
60 _REG_(CLOCKS_CLK_GPOUT0_SELECTED_OFFSET)
67 _REG_(CLOCKS_CLK_SYS_RESUS_CTRL_OFFSET)
74 _REG_(CLOCKS_CLK_SYS_RESUS_STATUS_OFFSET)
80 _REG_(CLOCKS_FC0_REF_KHZ_OFFSET)
85 _REG_(CLOCKS_FC0_MIN_KHZ_OFFSET)
90 _REG_(CLOCKS_FC0_MAX_KHZ_OFFSET)
95 _REG_(CLOCKS_FC0_DELAY_OFFSET)
100 _REG_(CLOCKS_FC0_INTERVAL_OFFSET)
105 _REG_(CLOCKS_FC0_SRC_OFFSET)
110 _REG_(CLOCKS_FC0_STATUS_OFFSET)
122 _REG_(CLOCKS_FC0_RESULT_OFFSET)
136 _REG_(CLOCKS_WAKE_EN0_OFFSET)
172 _REG_(CLOCKS_WAKE_EN1_OFFSET)
191 _REG_(CLOCKS_SLEEP_EN0_OFFSET)
227 _REG_(CLOCKS_SLEEP_EN1_OFFSET)
246 _REG_(CLOCKS_ENABLED0_OFFSET)
282 _REG_(CLOCKS_ENABLED1_OFFSET)
301 _REG_(CLOCKS_INTR_OFFSET)
306 _REG_(CLOCKS_INTE_OFFSET)
311 _REG_(CLOCKS_INTF_OFFSET)
316 _REG_(CLOCKS_INTS_OFFSET)
322#define clocks_hw ((clocks_hw_t *const)CLOCKS_BASE)
324static_assert( CLK_COUNT == 10,
"");
clock_index
Enumeration identifying a hardware clock.
Definition: clocks.h:27
@ clk_rtc
Real time clock.
Definition: clocks.h:37
@ clk_gpout0
GPIO Muxing 0.
Definition: clocks.h:28
@ clk_gpout2
GPIO Muxing 2.
Definition: clocks.h:30
@ clk_peri
Peripheral clock for UART and SPI.
Definition: clocks.h:34
@ clk_gpout1
GPIO Muxing 1.
Definition: clocks.h:29
@ clk_ref
Watchdog and timers reference clock.
Definition: clocks.h:32
@ clk_sys
Processors, bus fabric, memory, memory mapped registers.
Definition: clocks.h:33
@ clk_usb
USB clock.
Definition: clocks.h:35
@ clk_gpout3
GPIO Muxing 3.
Definition: clocks.h:31
@ clk_adc
ADC clock.
Definition: clocks.h:36