AM263x MCU+ SDK  08.05.00
sdl_stc_soc.h
Go to the documentation of this file.
1 /********************************************************************
2  * Copyright (C) 2022 Texas Instruments Incorporated.
3  *
4  * Redistribution and use in source and binary forms, with or without
5  * modification, are permitted provided that the following conditions
6  * are met:
7  *
8  * Redistributions of source code must retain the above copyright
9  * notice, this list of conditions and the following disclaimer.
10  *
11  * Redistributions in binary form must reproduce the above copyright
12  * notice, this list of conditions and the following disclaimer in the
13  * documentation and/or other materials provided with the
14  * distribution.
15  *
16  * Neither the name of Texas Instruments Incorporated nor the names of
17  * its contributors may be used to endorse or promote products derived
18  * from this software without specific prior written permission.
19  *
20  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
24  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31  *
32  */
33 
34 
35 #ifndef SDL_STC_SOC_H_
36 #define SDL_STC_SOC_H_
37 
38 #include <sdl/include/am263x/sdlr_soc_baseaddress.h>
39 #include <sdl/include/am263x/sdlr_mss_rcm.h>
40 #include <sdl/include/am263x/sdlr_mss_ctrl.h>
41 
42 
43 #ifdef __cplusplus
44 extern "C" {
45 #endif
46 
64 /*======================================================================================================
65 * Required Macros for Instances config
66 ======================================================================================================*/
67 
68 #define SDL_STC_NUM_INSTANCES 2U
69 
75 /*======================================================================================================
76 * Enum for Different Core in SOC
77 ======================================================================================================*/
78 
79 typedef enum {
80 
83 
85 
86 } SDL_STC_Inst;
87 
88 /* @} */
89 
90 /* ========================================================================== */
91 /* Function Declarations */
92 /* ========================================================================== */
93 
105 static void SDL_STC_resetCauseClearR5F0(void);
106 static void SDL_STC_resetCauseClearR5F1(void);
107 
110 /*======================================================================================================
111 * This is global array gives the BASE ADDRESS of STC modules
112 ======================================================================================================*/
113 
114 static uint32_t SDL_STC_baseAddress[SDL_STC_NUM_INSTANCES] = {SDL_R5SS0_STC_U_BASE, SDL_R5SS1_STC_U_BASE};
115 
116 #define MSS_RCM_BaseAddress (SDL_MSS_RCM_U_BASE)
117 #define MSS_CTRL_BaseAddress (SDL_MSS_CTRL_U_BASE)
118 
119 
120 
121 
122 
123 #ifdef __cplusplus
124 }
125 #endif
126 
127 #endif /* SDL_STC_SOC_H_ */
SDL_STC_resetCauseClearR5F1
static void SDL_STC_resetCauseClearR5F1(void)
SDL_STC_INST_MAINR5F0
@ SDL_STC_INST_MAINR5F0
Definition: sdl_stc_soc.h:81
SDL_STC_Inst
SDL_STC_Inst
Definition: sdl_stc_soc.h:79
SDL_STC_INST_MAINR5F1
@ SDL_STC_INST_MAINR5F1
Definition: sdl_stc_soc.h:82
SDL_STC_resetCauseClearR5F0
static void SDL_STC_resetCauseClearR5F0(void)
This API is used to clear the reset cause bits for processor core.
INVALID_INSTANCE
@ INVALID_INSTANCE
Definition: sdl_stc_soc.h:84
SDL_STC_NUM_INSTANCES
#define SDL_STC_NUM_INSTANCES
Definition: sdl_stc_soc.h:68
SDL_STC_baseAddress
static uint32_t SDL_STC_baseAddress[SDL_STC_NUM_INSTANCES]
Definition: sdl_stc_soc.h:114