source: azure_iot_hub_f767zi/trunk/asp_baseplatform/arch/arm_m_gcc/stm32f7xx/cmsis_f7.h@ 457

Last change on this file since 457 was 457, checked in by coas-nagasima, 4 years ago

ファイルを追加

  • Property svn:eol-style set to native
  • Property svn:mime-type set to text/x-chdr;charset=UTF-8
File size: 29.9 KB
Line 
1/*
2 * TOPPERS/ASP Kernel
3 * Toyohashi Open Platform for Embedded Real-Time Systems/
4 * Just Standard Profile Kernel
5 *
6 * Copyright (C) 2015 by 3rd Designing Center
7 * Imageing System Development Division RICOH COMPANY, LTD.
8 *
9 * 上記著作権者は,以下の (1)~(4) の条件か,Free Software Foundation
10 * によって公表されている GNU General Public License の Version 2 に記
11 * 述されている条件を満たす場合に限り,本ソフトウェア(本ソフトウェア
12 * を改変したものを含む.以下同じ)を使用・複製・改変・再配布(以下,
13 * 利用と呼ぶ)することを無償で許諾する.
14 * (1) 本ソフトウェアをソースコードの形で利用する場合には,上記の著作
15 * 権表示,この利用条件および下記の無保証規定が,そのままの形でソー
16 * スコード中に含まれていること.
17 * (2) 本ソフトウェアを,ライブラリ形式など,他のソフトウェア開発に使
18 * 用できる形で再配布する場合には,再配布に伴うドキュメント(利用
19 * 者マニュアルなど)に,上記の著作権表示,この利用条件および下記
20 * の無保証規定を掲載すること.
21 * (3) 本ソフトウェアを,機器に組み込むなど,他のソフトウェア開発に使
22 * 用できない形で再配布する場合には,次のいずれかの条件を満たすこ
23 * と.
24 * (a) 再配布に伴うドキュメント(利用者マニュアルなど)に,上記の著
25 * 作権表示,この利用条件および下記の無保証規定を掲載すること.
26 * (b) 再配布の形態を,別に定める方法によって,TOPPERSプロジェクトに
27 * 報告すること.
28 * (4) 本ソフトウェアの利用により直接的または間接的に生じるいかなる損
29 * 害からも,上記著作権者およびTOPPERSプロジェクトを免責すること.
30 *
31 * 本ソフトウェアは,無保証で提供されているものである.上記著作権者お
32 * よびTOPPERSプロジェクトは,本ソフトウェアに関して,その適用可能性も
33 * 含めて,いかなる保証も行わない.また,本ソフトウェアの利用により直
34 * 接的または間接的に生じたいかなる損害に関しても,その責任を負わない.
35 *
36 * @(#) $Id$
37 */
38
39#ifndef _CMSIS_F7_H_
40#define _CMSIS_F7_H_
41
42/*
43 * SIL TYPE to ACCESS the INSTRUCTATION TRACE MACROCELL REGISTER (ITM).
44 */
45#define TADR_ITM_BASE (0xE0000000UL) /* ITM Base Address */
46#define TOFF_ITM_PORT 0x0000 /* (W) ITM Stimulus Port Registers */
47#define TOFF_ITM_TER 0x0E00 /* (RW) ITM Trace Enable Register */
48#define TOFF_ITM_TPR 0x0E40 /* (RW) ITM Trace Privilege Register */
49#define TOFF_ITM_TCR 0x0E80 /* (RW) ITM Trace Control Register */
50#define TOFF_ITM_IWR 0x0EF8 /* (W) ITM Integration Write Register */
51#define TOFF_ITM_IRR 0x0EFC /* (R) ITM Integration Read Register */
52#define TOFF_ITM_IMCR 0x0F00 /* (RW) ITM Integration Mode Control Register */
53#define TOFF_ITM_LAR 0x0FB0 /* (W) ITM Lock Access Register */
54#define TOFF_ITM_LSR 0x0FB4 /* (R) ITM Lock Status Register */
55#define TOFF_ITM_PID4 0x0FD0 /* (R) ITM Peripheral Identification Register #4 */
56#define TOFF_ITM_PID5 0x0FD4 /* (R) ITM Peripheral Identification Register #5 */
57#define TOFF_ITM_PID6 0x0FD8 /* (R) ITM Peripheral Identification Register #6 */
58#define TOFF_ITM_PID7 0x0FDC /* (R) ITM Peripheral Identification Register #7 */
59#define TOFF_ITM_PID0 0x0FE0 /* (R) ITM Peripheral Identification Register #0 */
60#define TOFF_ITM_PID1 0x0FE4 /* (R) ITM Peripheral Identification Register #1 */
61#define TOFF_ITM_PID2 0x0FE8 /* (R) ITM Peripheral Identification Register #2 */
62#define TOFF_ITM_PID3 0x0FEC /* (R) ITM Peripheral Identification Register #3 */
63#define TOFF_ITM_CID0 0x0FF0 /* (R) ITM Component Identification Register #0 */
64#define TOFF_ITM_CID1 0x0FF4 /* (R) ITM Component Identification Register #1 */
65#define TOFF_ITM_CID2 0x0FF8 /* (R) ITM Component Identification Register #2 */
66#define TOFF_ITM_CID3 0x0FFC /* (R) ITM Component Identification Register #3 */
67
68/*
69 * SIL TYPE to ACCESS the Data Watchpoint and Trace Register (DWT).
70 */
71#define TADR_DWT_BASE (0xE0001000UL) /* DWT Base Address */
72#define TOFF_DWT_CTRL 0x0000 /* (RW) Control Register */
73#define TOFF_DWT_CYCCNT 0x0004 /* (RW) Cycle Count Register */
74#define TOFF_DWT_CPICNT 0x0008 /* (RW) CPI Count Register */
75#define TOFF_DWT_EXCCNT 0x000C /* (RW) Exception Overhead Count Register */
76#define TOFF_DWT_SLEEPCNT 0x0010 /* (RW) Sleep Count Register */
77#define TOFF_DWT_LSUCNT 0x0014 /* (RW) LSU Count Register */
78#define TOFF_DWT_FOLDCNT 0x0018 /* (RW) Folded-instruction Count Register */
79#define TOFF_DWT_PCSR 0x001C /* (R ) Program Counter Sample Register */
80#define TOFF_DWT_COMP0 0x0020 /* (RW) Comparator Register 0 */
81#define TOFF_DWT_MASK0 0x0024 /* (RW) Mask Register 0 */
82#define TOFF_DWT_FUNCTION0 0x0028 /* (RW) Function Register 0 */
83#define TOFF_DWT_COMP1 0x0030 /* (RW) Comparator Register 1 */
84#define TOFF_DWT_MASK1 0x0034 /* (RW) Mask Register 1 */
85#define TOFF_DWT_FUNCTION1 0x0038 /* (RW) Function Register 1 */
86#define TOFF_DWT_COMP2 0x0040 /* (RW) Comparator Register 2 */
87#define TOFF_DWT_MASK2 0x0044 /* (RW) Mask Register 2 */
88#define TOFF_DWT_FUNCTION2 0x0048 /* (RW) Function Register 2 */
89#define TOFF_DWT_COMP3 0x0050 /* (RW) Comparator Register 3 */
90#define TOFF_DWT_MASK3 0x0054 /* (RW) Mask Register 3 */
91#define TOFF_DWT_FUNCTION3 0x0058 /* (RW) Function Register 3 */
92#define TOFF_DWT_LAR 0x0FB0 /* (W) Lock Access Register */
93#define TOFF_DWT_LSR 0x0FB4 /* (R) Lock Status Register */
94
95/*
96 * SIL TYPE to ACCESS the SYSTEM CONTROL and ID RREGISTER not in the SCB.
97 */
98#define TADR_SCS_BASE (0xE000E000UL) /* System Control Space Base Address */
99#define TOFF_SCS_ICTR 0x0004 /* (R) Interrupt Controller Type Register */
100#define TOFF_SCS_ACTLR 0x0008 /* (RW) Auxiliary Control Register */
101
102/*
103 * SIL TYPE to ACCESS THE SYSTEM TIMER (SysTick).
104 */
105#define TADR_SYSTICK_BASE (TADR_SCS_BASE+0x0010UL) /* SysTick Base Address */
106#define TOFF_SYSTICK_CTRL 0x0000 /* (RW) SysTick Control and Status Register */
107#define TOFF_SYSTICK_LOAD 0x0004 /* (RW) SysTick Reload Value Register */
108#define TOFF_SYSTICK_VAL 0x0008 /* (RW) SysTick Current Value Register */
109#define TOFF_SYSTICK_CALIB 0x000C /* (R) SysTick Calibration Register */
110
111/*
112 * SIL TYPE to ACCESS the NESTE VECTORED INTERRUPT CONTROLLER (NVIC).
113 */
114#define TADR_NVIC_BASE (TADR_SCS_BASE+0x0100UL) /* NVIC Base Address */
115#define TOFF_NVIC_ISER 0x0000 /* (RW) Interrupt Set Enable Register */
116#define TOFF_NVIC_ICER 0x0080 /* (RW) Interrupt Clear Enable Register */
117#define TOFF_NVIC_ISPR 0x0100 /* (RW) Interrupt Set Pending Register */
118#define TOFF_NVIC_ICPR 0x0180 /* (RW) Interrupt Clear Pending Register */
119#define TOFF_NVIC_IABR 0x0200 /* (RW) Interrupt Active bit Register */
120#define TOFF_NVIC_IP 0x0300 /* (RW) Interrupt Priority Register (8Bit wide) */
121#define TOFF_NVIC_STIR 0x0E00 /* (W) Software Trigger Interrupt Register */
122
123/*
124 * SIL TYPE to ACCESS the SYSTEM CONTROL BLOCK (SCB).
125 */
126#define TADR_SCB_BASE (TADR_SCS_BASE+0x0D00UL) /* System Control Block Base Address */
127#define TOFF_SCB_CPUID 0x0000 /* (R) CPUID Base Register */
128#define TOFF_SCB_ICSR 0x0004 /* (RW) Interrupt Control and State Register */
129#define TOFF_SCB_VTOR 0x0008 /* (RW) Vector Table Offset Register */
130#define TOFF_SCB_AIRCR 0x000C /* (RW) Application Interrupt and Reset Control Register */
131 #define SCB_VTOR_TBLOFF_Pos 7 /* TBLOFF Position */
132 #define SCB_VTOR_TBLOFF_Msk (0x1FFFFFF << SCB_VTOR_TBLOFF_Pos) /* TBLOFF Mask */
133 #define SCB_AIRCR_VECTKEY_Pos 16 /* VECTKEY Position */
134 #define SCB_AIRCR_VECTKEY_Msk (0xFFFF << SCB_AIRCR_VECTKEY_Pos) /* VECTKEY Mask */
135 #define SCB_AIRCR_VECTKEYSTAT_Pos 16 /* VECTKEYSTAT Position */
136 #define SCB_AIRCR_VECTKEYSTAT_Msk (0xFFFF << SCB_AIRCR_VECTKEYSTAT_Pos)/* VECTKEYSTAT Mask */
137 #define SCB_AIRCR_ENDIANESS_Pos 15 /* ENDIANESS Position */
138 #define SCB_AIRCR_ENDIANESS_Msk (1 << SCB_AIRCR_ENDIANESS_Pos) /* ENDIANESS Mask */
139 #define SCB_AIRCR_PRIGROUP_Pos 8 /* PRIGROUP Position */
140 #define SCB_AIRCR_PRIGROUP_Msk (7 << SCB_AIRCR_PRIGROUP_Pos) /* PRIGROUP Mask */
141 #define SCB_AIRCR_SYSRESETREQ_Pos 2 /* SYSRESETREQ Position */
142 #define SCB_AIRCR_SYSRESETREQ_Msk (1 << SCB_AIRCR_SYSRESETREQ_Pos) /* SYSRESETREQ Mask */
143 #define SCB_AIRCR_VECTCLRACTIVE_Pos 1 /* VECTCLRACTIVE Position */
144 #define SCB_AIRCR_VECTCLRACTIVE_Msk (1 << SCB_AIRCR_VECTCLRACTIVE_Pos) /* VECTCLRACTIVE Mask */
145 #define SCB_AIRCR_VECTRESET_Pos 0 /* VECTRESET Position */
146 #define SCB_AIRCR_VECTRESET_Msk (1 /*<< SCB_AIRCR_VECTRESET_Pos*/) /* VECTRESET Mask */
147#define TOFF_SCB_SCR 0x0010 /* (RW) System Control Register */
148 #define SCB_SCR_SEVONPEND_Pos 4 /* SEVONPEND Position */
149 #define SCB_SCR_SEVONPEND_Msk (1 << SCB_SCR_SEVONPEND_Pos) /* SEVONPEND Mask */
150 #define SCB_SCR_SLEEPDEEP_Pos 2 /* SLEEPDEEP Position */
151 #define SCB_SCR_SLEEPDEEP_Msk (1 << SCB_SCR_SLEEPDEEP_Pos) /* SLEEPDEEP Mask */
152 #define SCB_SCR_SLEEPONEXIT_Pos 1 /* SCB SCR: SLEEPONEXIT Position */
153 #define SCB_SCR_SLEEPONEXIT_Msk (1 << SCB_SCR_SLEEPONEXIT_Pos) /* SCB SCR: SLEEPONEXIT Mask */
154#define TOFF_SCB_CCR 0x0014 /* (RW) Configuration Control Register */
155 #define SCB_CCR_BP_Pos 18 /* Branch prediction enable bit Position */
156 #define SCB_CCR_BP_Msk (1 << SCB_CCR_BP_Pos) /* Branch prediction enable bit Mask */
157 #define SCB_CCR_IC_Pos 17 /* Instruction cache enable bit Position */
158 #define SCB_CCR_IC_Msk (1 << SCB_CCR_IC_Pos) /* Instruction cache enable bit Mask */
159 #define SCB_CCR_DC_Pos 16 /* Cache enable bit Position */
160 #define SCB_CCR_DC_Msk (1 << SCB_CCR_DC_Pos) /* Cache enable bit Mask */
161 #define SCB_CCR_STKALIGN_Pos 9 /* STKALIGN Position */
162 #define SCB_CCR_STKALIGN_Msk (1 << SCB_CCR_STKALIGN_Pos) /* STKALIGN Mask */
163 #define SCB_CCR_BFHFNMIGN_Pos 8 /* BFHFNMIGN Position */
164 #define SCB_CCR_BFHFNMIGN_Msk (1 << SCB_CCR_BFHFNMIGN_Pos) /* BFHFNMIGN Mask */
165 #define SCB_CCR_DIV_0_TRP_Pos 4 /* DIV_0_TRP Position */
166 #define SCB_CCR_DIV_0_TRP_Msk (1 << SCB_CCR_DIV_0_TRP_Pos) /* DIV_0_TRP Mask */
167 #define SCB_CCR_UNALIGN_TRP_Pos 3 /* UNALIGN_TRP Position */
168 #define SCB_CCR_UNALIGN_TRP_Msk (1 << SCB_CCR_UNALIGN_TRP_Pos) /* UNALIGN_TRP Mask */
169 #define SCB_CCR_USERSETMPEND_Pos 1 /* USERSETMPEND Position */
170 #define SCB_CCR_USERSETMPEND_Msk (1 << SCB_CCR_USERSETMPEND_Pos) /* USERSETMPEND Mask */
171 #define SCB_CCR_NONBASETHRDENA_Pos 0 /* NONBASETHRDENA Position */
172 #define SCB_CCR_NONBASETHRDENA_Msk (1 /*<< SCB_CCR_NONBASETHRDENA_Pos*/)/* NONBASETHRDENA Mask */
173#define TOFF_SCB_SHP4 0x0018 /* (RW-8) System Handlers Priority Registers 4 */
174#define TOFF_SCB_SHP5 0x0019 /* (RW-8) System Handlers Priority Registers 5 */
175#define TOFF_SCB_SHP6 0x001A /* (RW-8) System Handlers Priority Registers 6 */
176#define TOFF_SCB_SHP7 0x001B /* (RW-8) System Handlers Priority Registers 7 */
177#define TOFF_SCB_SHP8 0x001C /* (RW-8) System Handlers Priority Registers 8 */
178#define TOFF_SCB_SHP9 0x001D /* (RW-8) System Handlers Priority Registers 9 */
179#define TOFF_SCB_SHP10 0x001E /* (RW-8) System Handlers Priority Registers 10 */
180#define TOFF_SCB_SHP11 0x001F /* (RW-8) System Handlers Priority Registers 11 */
181#define TOFF_SCB_SHP12 0x0020 /* (RW-8) System Handlers Priority Registers 12 */
182#define TOFF_SCB_SHP13 0x0021 /* (RW-8) System Handlers Priority Registers 13 */
183#define TOFF_SCB_SHP14 0x0022 /* (RW-8) System Handlers Priority Registers 14 */
184#define TOFF_SCB_SHP15 0x0023 /* (RW-8) System Handlers Priority Registers 15 */
185#define TOFF_SCB_SHCSR 0x0024 /* (RW) System Handler Control and State Register */
186 #define SCB_SHCSR_USGFAULTENA_Pos 18 /* USGFAULTENA Position */
187 #define SCB_SHCSR_USGFAULTENA_Msk (1 << SCB_SHCSR_USGFAULTENA_Pos) /* USGFAULTENA Mask */
188 #define SCB_SHCSR_BUSFAULTENA_Pos 17 /* BUSFAULTENA Position */
189 #define SCB_SHCSR_BUSFAULTENA_Msk (1 << SCB_SHCSR_BUSFAULTENA_Pos) /* BUSFAULTENA Mask */
190 #define SCB_SHCSR_MEMFAULTENA_Pos 16 /* MEMFAULTENA Position */
191 #define SCB_SHCSR_MEMFAULTENA_Msk (1 << SCB_SHCSR_MEMFAULTENA_Pos) /* MEMFAULTENA Mask */
192 #define SCB_SHCSR_SVCALLPENDED_Pos 15 /* SVCALLPENDED Position */
193 #define SCB_SHCSR_SVCALLPENDED_Msk (1 << SCB_SHCSR_SVCALLPENDED_Pos) /* SVCALLPENDED Mask */
194 #define SCB_SHCSR_BUSFAULTPENDED_Pos 14 /* BUSFAULTPENDED Position */
195 #define SCB_SHCSR_BUSFAULTPENDED_Msk (1 << SCB_SHCSR_BUSFAULTPENDED_Pos) /* BUSFAULTPENDED Mask */
196 #define SCB_SHCSR_MEMFAULTPENDED_Pos 13 /* MEMFAULTPENDED Position */
197 #define SCB_SHCSR_MEMFAULTPENDED_Msk (1 << SCB_SHCSR_MEMFAULTPENDED_Pos) /* MEMFAULTPENDED Mask */
198 #define SCB_SHCSR_USGFAULTPENDED_Pos 12 /* USGFAULTPENDED Position */
199 #define SCB_SHCSR_USGFAULTPENDED_Msk (1 << SCB_SHCSR_USGFAULTPENDED_Pos) /* USGFAULTPENDED Mask */
200 #define SCB_SHCSR_SYSTICKACT_Pos 11 /* SYSTICKACT Position */
201 #define SCB_SHCSR_SYSTICKACT_Msk (1 << SCB_SHCSR_SYSTICKACT_Pos) /* SYSTICKACT Mask */
202 #define SCB_SHCSR_PENDSVACT_Pos 10 /* PENDSVACT Position */
203 #define SCB_SHCSR_PENDSVACT_Msk (1 << SCB_SHCSR_PENDSVACT_Pos) /* PENDSVACT Mask */
204 #define SCB_SHCSR_MONITORACT_Pos 8 /* MONITORACT Position */
205 #define SCB_SHCSR_MONITORACT_Msk (1 << SCB_SHCSR_MONITORACT_Pos) /* MONITORACT Mask */
206 #define SCB_SHCSR_SVCALLACT_Pos 7 /* SVCALLACT Position */
207 #define SCB_SHCSR_SVCALLACT_Msk (1 << SCB_SHCSR_SVCALLACT_Pos) /* SVCALLACT Mask */
208 #define SCB_SHCSR_USGFAULTACT_Pos 3 /* USGFAULTACT Position */
209 #define SCB_SHCSR_USGFAULTACT_Msk (1 << SCB_SHCSR_USGFAULTACT_Pos) /* USGFAULTACT Mask */
210 #define SCB_SHCSR_BUSFAULTACT_Pos 1 /* BUSFAULTACT Position */
211 #define SCB_SHCSR_BUSFAULTACT_Msk (1 << SCB_SHCSR_BUSFAULTACT_Pos) /* BUSFAULTACT Mask */
212 #define SCB_SHCSR_MEMFAULTACT_Pos 0 /* MEMFAULTACT Position */
213 #define SCB_SHCSR_MEMFAULTACT_Msk (1 /*<< SCB_SHCSR_MEMFAULTACT_Pos*/) /* MEMFAULTACT Mask */
214#define TOFF_SCB_CFSR 0x0028 /* (RW) Configurable Fault Status Register */
215#define TOFF_SCB_HFSR 0x002C /* (RW) HardFault Status Register */
216#define TOFF_SCB_DFSR 0x0030 /* (RW) Debug Fault Status Register */
217#define TOFF_SCB_MMFAR 0x0034 /* (RW) MemManage Fault Address Register */
218#define TOFF_SCB_BFAR 0x0038 /* (RW) BusFault Address Register */
219#define TOFF_SCB_AFSR 0x003C /* (RW) Auxiliary Fault Status Register */
220#define TOFF_SCB_PFR0 0x0040 /* (R) Processor Feature Register 0 */
221#define TOFF_SCB_PFR1 0x0044 /* (R) Processor Feature Register 1 */
222#define TOFF_SCB_ID_DFR 0x0048 /* (R) Debug Feature Register */
223#define TOFF_SCB_ID_AFR 0x004C /* (R) Auxiliary Feature Register */
224#define TOFF_SCB_ID_MFR0 0x0050 /* (R) Memory Model Feature Register #0 */
225#define TOFF_SCB_ID_MFR1 0x0054 /* (R) Memory Model Feature Register #1 */
226#define TOFF_SCB_ID_MFR2 0x0058 /* (R) Memory Model Feature Register #2 */
227#define TOFF_SCB_ID_MFR3 0x005C /* (R) Memory Model Feature Register #3 */
228#define TOFF_SCB_ID_ISAR0 0x0060 /* (R) Instruction Set Attributes Register #0 */
229#define TOFF_SCB_ID_ISAR1 0x0064 /* (R) Instruction Set Attributes Register #1 */
230#define TOFF_SCB_ID_ISAR2 0x0068 /* (R) Instruction Set Attributes Register #2 */
231#define TOFF_SCB_ID_ISAR3 0x006C /* (R) Instruction Set Attributes Register #3 */
232#define TOFF_SCB_ID_ISAR4 0x0070 /* (R) Instruction Set Attributes Register #4 */
233#define TOFF_SCB_CLIDR 0x0078 /* (R) Cache Level ID register */
234#define TOFF_SCB_CTR 0x007C /* (R) Cache Type register */
235#define TOFF_SCB_CCSIDR 0x0080 /* (R) Cache Size ID Register */
236 #define SCB_CCSIDR_WT_Pos 31 /* WT Position */
237 #define SCB_CCSIDR_WT_Msk (7 << SCB_CCSIDR_WT_Pos) /* WT Mask */
238 #define SCB_CCSIDR_WB_Pos 30 /* WB Position */
239 #define SCB_CCSIDR_WB_Msk (7 << SCB_CCSIDR_WB_Pos) /* WB Mask */
240 #define SCB_CCSIDR_RA_Pos 29 /* RA Position */
241 #define SCB_CCSIDR_RA_Msk (7 << SCB_CCSIDR_RA_Pos) /* RA Mask */
242 #define SCB_CCSIDR_WA_Pos 28 /* WA Position */
243 #define SCB_CCSIDR_WA_Msk (7 << SCB_CCSIDR_WA_Pos) /* WA Mask */
244 #define SCB_CCSIDR_NUMSETS_Pos 13 /* NumSets Position */
245 #define SCB_CCSIDR_NUMSETS_Msk (0x7FFF << SCB_CCSIDR_NUMSETS_Pos) /* NumSets Mask */
246 #define SCB_CCSIDR_ASSOCIATIVITY_Pos 3 /* Associativity Position */
247 #define SCB_CCSIDR_ASSOCIATIVITY_Msk (0x3FF << SCB_CCSIDR_ASSOCIATIVITY_Pos) /* Associativity Mask */
248 #define SCB_CCSIDR_LINESIZE_Pos 0 /* LineSize Position */
249 #define SCB_CCSIDR_LINESIZE_Msk (7 /*<< SCB_CCSIDR_LINESIZE_Pos*/) /* LineSize Mask */
250#define TOFF_SCB_CSSELR 0x0084 /* (RW) Cache Size Selection Register */
251#define TOFF_SCB_CPACR 0x0088 /* (RW) Coprocessor Access Control Register */
252#define TOFF_SCB_STIR 0x0200 /* (W) Software Triggered Interrupt Register */
253#define TOFF_SCB_MVFR0 0x0240 /* (R) Media and VFP Feature Register 0 */
254#define TOFF_SCB_MVFR1 0x0244 /* (R) Media and VFP Feature Register 1 */
255#define TOFF_SCB_MVFR2 0x0248 /* (R) Media and VFP Feature Register 2 */
256#define TOFF_SCB_ICIALLU 0x0250 /* (W) I-Cache Invalidate All to PoU */
257#define TOFF_SCB_ICIMVAU 0x0258 /* (W) I-Cache Invalidate by MVA to PoU */
258#define TOFF_SCB_DCIMVAC 0x025C /* (W) D-Cache Invalidate by MVA to PoC */
259#define TOFF_SCB_DCISW 0x0260 /* (W) D-Cache Invalidate by Set-way */
260#define TOFF_SCB_DCCMVAU 0x0264 /* (W) D-Cache Clean by MVA to PoU */
261#define TOFF_SCB_DCCMVAC 0x0268 /* (W) D-Cache Clean by MVA to PoC */
262#define TOFF_SCB_DCCSW 0x026C /* (W) D-Cache Clean by Set-way */
263#define TOFF_SCB_DCCIMVAC 0x0270 /* (W) D-Cache Clean and Invalidate by MVA to PoC */
264#define TOFF_SCB_DCCISW 0x0274 /* (W) D-Cache Clean and Invalidate by Set-way */
265#define TOFF_SCB_ITCMCR 0x0290 /* (RW) Instruction Tightly-Coupled Memory Control Register */
266#define TOFF_SCB_DTCMCR 0x0294 /* (RW) Data Tightly-Coupled Memory Control Registers */
267#define TOFF_SCB_AHBPCR 0x0298 /* (RW) AHBP Control Register */
268#define TOFF_SCB_CACR 0x029C /* (RW) L1 Cache Control Register */
269#define TOFF_SCB_AHBSCR 0x02A0 /* (RW) AHB Slave Control Register */
270#define TOFF_SCB_ABFSR 0x02A8 /* (RW) Auxiliary Bus Fault Status Register */
271
272/*
273 * SIL type to ACCESS the MEMORY PROTECTION UNIT (MPU).
274 */
275#define TADR_MPU_BASE (TADR_SCS_BASE+0x0D90UL) /* Memory Protection Unit */
276#define TOFF_MPU_TYPE 0x0000 /* (R) MPU Type Register */
277 #define MPU_TYPE_IREGION_Pos 16 /* IREGION Position */
278 #define MPU_TYPE_IREGION_Msk (0xFF << MPU_TYPE_IREGION_Pos) /* IREGION Mask */
279 #define MPU_TYPE_DREGION_Pos 8 /* DREGION Position */
280 #define MPU_TYPE_DREGION_Msk (0xFF << MPU_TYPE_DREGION_Pos) /* DREGION Mask */
281 #define MPU_TYPE_SEPARATE_Pos 0 /* SEPARATE Position */
282 #define MPU_TYPE_SEPARATE_Msk (1 /*<< MPU_TYPE_SEPARATE_Pos*/) /* SEPARATE Mask */
283#define TOFF_MPU_CTRL 0x0004 /* (RW) MPU Control Register */
284 #define MPU_CTRL_PRIVDEFENA_Pos 2 /* PRIVDEFENA Position */
285 #define MPU_CTRL_PRIVDEFENA_Msk (1 << MPU_CTRL_PRIVDEFENA_Pos) /* PRIVDEFENA Mask */
286 #define MPU_CTRL_HFNMIENA_Pos 1 /* HFNMIENA Position */
287 #define MPU_CTRL_HFNMIENA_Msk (1 << MPU_CTRL_HFNMIENA_Pos) /* HFNMIENA Mask */
288 #define MPU_CTRL_ENABLE_Pos 0 /* ENABLE Position */
289 #define MPU_CTRL_ENABLE_Msk (1 /*<< MPU_CTRL_ENABLE_Pos*/) /* ENABLE Mask */
290#define TOFF_MPU_RNR 0x0008 /* (RW) MPU Region RNRber Register */
291#define TOFF_MPU_RBAR 0x000C /* (RW) MPU Region Base Address Register */
292#define TOFF_MPU_RASR 0x0010 /* (RW) MPU Region Attribute and Size Register */
293 #define MPU_RASR_ATTRS_Pos 16 /* MPU Region Attribute field Position */
294 #define MPU_RASR_ATTRS_Msk (0xFFFF << MPU_RASR_ATTRS_Pos) /* MPU Region Attribute field Mask */
295 #define MPU_RASR_XN_Pos 28 /* ATTRS.XN Position */
296 #define MPU_RASR_XN_Msk (1 << MPU_RASR_XN_Pos) /* ATTRS.XN Mask */
297 #define MPU_RASR_AP_Pos 24 /* ATTRS.AP Position */
298 #define MPU_RASR_AP_Msk (0x7 << MPU_RASR_AP_Pos) /* ATTRS.AP Mask */
299 #define MPU_RASR_TEX_Pos 19 /* ATTRS.TEX Position */
300 #define MPU_RASR_TEX_Msk (0x7 << MPU_RASR_TEX_Pos) /* ATTRS.TEX Mask */
301 #define MPU_RASR_S_Pos 18 /* ATTRS.S Position */
302 #define MPU_RASR_S_Msk (1 << MPU_RASR_S_Pos) /* ATTRS.S Mask */
303 #define MPU_RASR_C_Pos 17 /* ATTRS.C Position */
304 #define MPU_RASR_C_Msk (1 << MPU_RASR_C_Pos) /* ATTRS.C Mask */
305 #define MPU_RASR_B_Pos 16 /* ATTRS.B Position */
306 #define MPU_RASR_B_Msk (1 << MPU_RASR_B_Pos) /* ATTRS.B Mask */
307 #define MPU_RASR_SRD_Pos 8 /* Sub-Region Disable Position */
308 #define MPU_RASR_SRD_Msk (0xFF << MPU_RASR_SRD_Pos) /* Sub-Region Disable Mask */
309 #define MPU_RASR_SIZE_Pos 1 /* Region Size Field Position */
310 #define MPU_RASR_SIZE_Msk (0x1F << MPU_RASR_SIZE_Pos) /* Region Size Field Mask */
311 #define MPU_RASR_ENABLE_Pos 0 /* Region enable bit Position */
312 #define MPU_RASR_ENABLE_Msk (1 /*<< MPU_RASR_ENABLE_Pos*/) /* Region enable bit Disable Mask */
313#define TOFF_MPU_RBAR_A1 0x0014 /* (RW) MPU Alias 1 Region Base Address Register */
314#define TOFF_MPU_RASR_A1 0x0018 /* (RW) MPU Alias 1 Region Attribute and Size Register */
315#define TOFF_MPU_RBAR_A2 0x001C /* (RW) MPU Alias 2 Region Base Address Register */
316#define TOFF_MPU_RASR_A2 0x0020 /* (RW) MPU Alias 2 Region Attribute and Size Register */
317#define TOFF_MPU_RBAR_A3 0x0024 /* (RW) MPU Alias 3 Region Base Address Register */
318#define TOFF_MPU_RASR_A3 0x0028 /* (RW) MPU Alias 3 Region Attribute and Size Register */
319
320/*
321 * SIL TYPE to ACCESS the TRACE PORT INTERFACE REGISTER (TPI).
322 */
323#define TADR_TPI_BASE (0xE0040000UL) /* TPI Base Address */
324#define TOFF_TPI_SSPSR 0x0000 /* (R) Supported Parallel Port Size Register */
325#define TOFF_TPI_CSPSR 0x0004 /* (RW) Current Parallel Port Size Register */
326#define TOFF_TPI_ACPR 0x0010 /* (RW) Asynchronous Clock Prescaler Register */
327#define TOFF_TPI_SPPR 0x00F0 /* (RW) Selected Pin Protocol Register */
328#define TOFF_TPI_FFSR 0x0300 /* (R) Formatter and Flush Status Register */
329#define TOFF_TPI_FFCR 0x0304 /* (RW) Formatter and Flush Control Register */
330#define TOFF_TPI_FSCR 0x0308 /* (R) Formatter Synchronization Counter Register */
331#define TOFF_TPI_TRIGGER 0x0EE8 /* (R) TRIGGER */
332#define TOFF_TPI_FIFO0 0x0EEC /* (R) Integration ETM Data */
333#define TOFF_TPI_ITATBCTR2 0x0EF0 /* (R) ITATBCTR2 */
334#define TOFF_TPI_ITATBCTR0 0x0EF8 /* (R) ITATBCTR0 */
335#define TOFF_TPI_FIFO1 0x0EFC /* (R) Integration ITM Data */
336#define TOFF_TPI_ITCTRL 0x0F00 /* (RW) Integration Mode Control */
337#define TOFF_TPI_CLAIMSET 0x0FA0 /* (RW) Claim tag set */
338#define TOFF_TPI_CLAIMCLR 0x0FA4 /* (RW) Claim tag clear */
339#define TOFF_TPI_DEVID 0x0FC8 /* (R) TPIU_DEVID */
340#define TOFF_TPI_DEVTYPE 0x0FCC /* (R) TPIU_DEVTYPE */
341
342/*
343 * SIL TYPE to ACCESS the CORE DEBUG REGISTER (CoreDebug).
344 */
345#define TADR_COREDEBUG_BASE (0xE000EDF0UL) /* Core Debug Base Address */
346#define TOFF_COREDEBUG_DHCSR 0x0000 /* (RW) Debug Halting Control and Status Register */
347#define TOFF_COREDEBUG_DCRSR 0x0004 /* (W) Debug Core Register Selector Register */
348#define TOFF_COREDEBUG_DCRDR 0x0008 /* (RW) Debug Core Register Data Register */
349#define TOFF_COREDEBUG_DEMCR 0x000C /* (RW) Debug Exception and Monitor Control Register */
350
351/*
352 * SIL TYPE to ACCESS the FLOATING POINT UNIT (FPU).
353 */
354#define TADR_FPU_BASE (TADR_SCS_BASE+0x0F30UL) /* Floating Point Unit */
355#define TOFF_FPU_FPCCR 0x0004 /* (RW) Floating-Point Context Control Register */
356#define TOFF_FPU_FPCAR 0x0008 /* (RW) Floating-Point Context Address Register */
357#define TOFF_FPU_FPDSCR 0x000C /* (RW) Floating-Point Default Status Control Register */
358#define TOFF_FPU_MVFR0 0x0010 /* (R) Media and FP Feature Register 0 */
359#define TOFF_FPU_MVFR1 0x0014 /* (R) Media and FP Feature Register 1 */
360#define TOFF_FPU_MVFR2 0x0018 /* (R) Media and FP Feature Register 2 */
361
362/*
363 * CORTEX_Preemption_Priority_Group CORTEX Preemption Priority Group
364 */
365#define NVIC_PRIORITYGROUP_0 0x00000007 /* 0 bits for pre-emption priority 4 bits for subpriority */
366#define NVIC_PRIORITYGROUP_1 0x00000006 /* 1 bits for pre-emption priority 3 bits for subpriority */
367#define NVIC_PRIORITYGROUP_2 0x00000005 /* 2 bits for pre-emption priority 2 bits for subpriority */
368#define NVIC_PRIORITYGROUP_3 0x00000004 /* 3 bits for pre-emption priority 1 bits for subpriority */
369#define NVIC_PRIORITYGROUP_4 0x00000003 /* 4 bits for pre-emption priority 0 bits for subpriority */
370
371/*
372 * CORTEX_MPU_HFNMI_PRIVDEF_Control MPU HFNMI and PRIVILEGED Access control
373 */
374#define MPU_HFNMI_PRIVDEF_NONE 0x00000000
375#define MPU_HARDFAULT_NMI 0x00000002
376#define MPU_PRIVILEGED_DEFAULT 0x00000004
377#define MPU_HFNMI_PRIVDEF 0x00000006
378
379/*
380 * CORTEX_MPU_TEX_Levels MPU TEX Levels
381 */
382#define MPU_TEX_LEVEL0 0x00
383#define MPU_TEX_LEVEL1 0x01
384#define MPU_TEX_LEVEL2 0x02
385
386/*
387 * CORTEX_MPU_Region_Size CORTEX MPU Region Size
388 */
389#define MPU_REGION_SIZE_32B 0x04
390#define MPU_REGION_SIZE_64B 0x05
391#define MPU_REGION_SIZE_128B 0x06
392#define MPU_REGION_SIZE_256B 0x07
393#define MPU_REGION_SIZE_512B 0x08
394#define MPU_REGION_SIZE_1KB 0x09
395#define MPU_REGION_SIZE_2KB 0x0A
396#define MPU_REGION_SIZE_4KB 0x0B
397#define MPU_REGION_SIZE_8KB 0x0C
398#define MPU_REGION_SIZE_16KB 0x0D
399#define MPU_REGION_SIZE_32KB 0x0E
400#define MPU_REGION_SIZE_64KB 0x0F
401#define MPU_REGION_SIZE_128KB 0x10
402#define MPU_REGION_SIZE_256KB 0x11
403#define MPU_REGION_SIZE_512KB 0x12
404#define MPU_REGION_SIZE_1MB 0x13
405#define MPU_REGION_SIZE_2MB 0x14
406#define MPU_REGION_SIZE_4MB 0x15
407#define MPU_REGION_SIZE_8MB 0x16
408#define MPU_REGION_SIZE_16MB 0x17
409#define MPU_REGION_SIZE_32MB 0x18
410#define MPU_REGION_SIZE_64MB 0x19
411#define MPU_REGION_SIZE_128MB 0x1A
412#define MPU_REGION_SIZE_256MB 0x1B
413#define MPU_REGION_SIZE_512MB 0x1C
414#define MPU_REGION_SIZE_1GB 0x1D
415#define MPU_REGION_SIZE_2GB 0x1E
416#define MPU_REGION_SIZE_4GB 0x1F
417
418/*
419 * CORTEX_MPU_Region_Number CORTEX MPU Region Number
420 */
421#define MPU_REGION_NUMBER0 0x00
422#define MPU_REGION_NUMBER1 0x01
423#define MPU_REGION_NUMBER2 0x02
424#define MPU_REGION_NUMBER3 0x03
425#define MPU_REGION_NUMBER4 0x04
426#define MPU_REGION_NUMBER5 0x05
427#define MPU_REGION_NUMBER6 0x06
428#define MPU_REGION_NUMBER7 0x07
429
430/*
431 * CORTEX_MPU_Region_Permission_Attributes CORTEX MPU Region Permission Attributes
432 */
433#define MPU_REGION_NO_ACCESS 0x00
434#define MPU_REGION_PRIV_RW 0x01
435#define MPU_REGION_PRIV_RW_URO 0x02
436#define MPU_REGION_FULL_ACCESS 0x03
437#define MPU_REGION_PRIV_RO 0x05
438#define MPU_REGION_PRIV_RO_URO 0x06
439
440
441#endif /* _CMSIS_F7_H_ */
442
Note: See TracBrowser for help on using the repository browser.