1 /* 2 * Copyright (c) 2020 Raspberry Pi (Trading) Ltd. 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 */ 6 7 #ifndef _HARDWARE_STRUCTS_XOSC_H 8 #define _HARDWARE_STRUCTS_XOSC_H 9 10 #include "hardware/address_mapped.h" 11 #include "hardware/platform_defs.h" 12 #include "hardware/regs/xosc.h" 13 14 /// \tag::xosc_hw[] 15 typedef struct { 16 io_rw_32 ctrl; 17 io_rw_32 status; 18 io_rw_32 dormant; 19 io_rw_32 startup; 20 io_rw_32 _reserved[3]; 21 io_rw_32 count; 22 } xosc_hw_t; 23 24 #define xosc_hw ((xosc_hw_t *const)XOSC_BASE) 25 /// \end::xosc_hw[] 26 27 #endif 28