1 /*
2  * Copyright (c) 2020 Raspberry Pi (Trading) Ltd.
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  */
6 
7 #ifndef _HARDWARE_STRUCTS_SYSTICK_H
8 #define _HARDWARE_STRUCTS_SYSTICK_H
9 
10 #include "hardware/address_mapped.h"
11 #include "hardware/regs/m0plus.h"
12 
13 typedef struct {
14     io_rw_32 csr;
15     io_rw_32 rvr;
16     io_rw_32 cvr;
17     io_ro_32 calib;
18 } systick_hw_t;
19 
20 #define systick_hw ((systick_hw_t *const)(PPB_BASE + M0PLUS_SYST_CSR_OFFSET))
21 
22 #endif
23