1 /* 2 * Copyright (c) 2020 Raspberry Pi (Trading) Ltd. 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 */ 6 #ifndef _HARDWARE_STRUCTS_SCB_H 7 #define _HARDWARE_STRUCTS_SCB_H 8 9 #include "hardware/address_mapped.h" 10 #include "hardware/regs/m0plus.h" 11 12 // SCB == System Control Block 13 typedef struct { 14 io_ro_32 cpuid; 15 io_rw_32 icsr; 16 io_rw_32 vtor; 17 io_rw_32 aircr; 18 io_rw_32 scr; 19 // ... 20 } armv6m_scb_t; 21 22 #define scb_hw ((armv6m_scb_t *const)(PPB_BASE + M0PLUS_CPUID_OFFSET)) 23 24 #endif 25