Contiki 3.x
scb.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2012, Texas Instruments Incorporated - http://www.ti.com/
3  * All rights reserved.
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions
7  * are met:
8  * 1. Redistributions of source code must retain the above copyright
9  * notice, this list of conditions and the following disclaimer.
10  * 2. Redistributions in binary form must reproduce the above copyright
11  * notice, this list of conditions and the following disclaimer in the
12  * documentation and/or other materials provided with the distribution.
13  *
14  * 3. Neither the name of the copyright holder nor the names of its
15  * contributors may be used to endorse or promote products derived
16  * from this software without specific prior written permission.
17  *
18  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
21  * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
22  * COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
23  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
24  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
25  * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
27  * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
29  * OF THE POSSIBILITY OF SUCH DAMAGE.
30  */
31 /**
32  * \addtogroup cc2538
33  * @{
34  *
35  * \defgroup cc2538-scb cc2538 System Control Block
36  * @{
37  *
38  * \file
39  * Header file for the System Control Block (SCB)
40  */
41 #ifndef SCB_H_
42 #define SCB_H_
43 
44 #define SCB_CPUID 0xE000ED00 /**< CPU ID Base */
45 #define SCB_INTCTRL 0xE000ED04 /**< Interrupt Control and State */
46 #define SCB_VTABLE 0xE000ED08 /**< Vector Table Offset */
47 #define SCB_APINT 0xE000ED0C /**< Application Interrupt and Reset Control */
48 #define SCB_SYSCTRL 0xE000ED10 /**< System Control */
49 #define SCB_CFGCTRL 0xE000ED14 /**< Configuration and Control */
50 #define SCB_SYSPRI1 0xE000ED18 /**< System Handler Priority 1 */
51 #define SCB_SYSPRI2 0xE000ED1C /**< System Handler Priority 2 */
52 #define SCB_SYSPRI3 0xE000ED20 /**< System Handler Priority 3 */
53 #define SCB_SYSHNDCTRL 0xE000ED24 /**< System Handler Control and State */
54 #define SCB_FAULTSTAT 0xE000ED28 /**< Configurable Fault Status */
55 #define SCB_HFAULTSTAT 0xE000ED2C /**< Hard Fault Status */
56 #define SCB_DEBUG_STAT 0xE000ED30 /**< Debug Status Register */
57 #define SCB_MMADDR 0xE000ED34 /**< Memory Management Fault Address */
58 #define SCB_FAULT_ADDR 0xE000ED38 /**< Bus Fault Address */
59 /*---------------------------------------------------------------------------*/
60 /** \name VTABLE register bits
61  * @{
62  */
63 #define SCB_VTABLE_BASE 0x20000000 /**< Vector Table Base */
64 #define SCB_VTABLE_OFFSET_M 0x1FFFFE00 /**< Vector Table Offset */
65 /** @} */
66 /*---------------------------------------------------------------------------*/
67 /** \name SCB_SYSCTRL register bits
68  * @{
69  */
70 #define SCB_SYSCTRL_SEVONPEND 0x00000010 /**< Wake up on pending */
71 #define SCB_SYSCTRL_SLEEPDEEP 0x00000004 /**< Deep sleep enable */
72 #define SCB_SYSCTRL_SLEEPEXIT 0x00000002 /**< Sleep on ISR exit */
73 /** @} */
74 /*---------------------------------------------------------------------------*/
75 
76 #endif /* SCB_H_ */
77 
78 /**
79  * @}
80  * @}
81  */