AM273x 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/am273x/sdlr_soc_baseaddress.h>
39 #include <sdl/include/am273x/sdlr_mss_rcm.h>
40 #include <sdl/include/am273x/sdlr_mss_ctrl.h>
41 #include <sdl/include/am273x/sdlr_dss_rcm.h>
42 #include <sdl/include/am273x/sdlr_dss_ctrl.h>
43 
44 #ifdef __cplusplus
45 extern "C" {
46 #endif
47 
65 /*======================================================================================================
66 * Required Macros for Instances config
67 ======================================================================================================*/
68 
69 #define SDL_STC_NUM_INSTANCES 2U
70 
76 /*======================================================================================================
77 * Enum for Different Core in SOC
78 ======================================================================================================*/
79 
80 typedef enum {
81 
84 
86 
87 } SDL_STC_Inst;
88 
89 /* @} */
90 
91 
92 /* ========================================================================== */
93 /* Function Declarations */
94 /* ========================================================================== */
95 
107 static void SDL_STC_resetCauseClear(void);
108 
112 /*======================================================================================================
113 * This is global array gives the BASE ADDRESS of STC modules
114 ======================================================================================================*/
115 
116 static uint32_t SDL_STC_baseAddress[SDL_STC_NUM_INSTANCES] = {SDL_MSS_R5SS_STC_U_BASE, SDL_DSS_DSP_STC_U_BASE};
117 
118 #define MSS_RCM_BaseAddress (SDL_MSS_RCM_U_BASE)
119 #define MSS_CTRL_BaseAddress (SDL_MSS_CTRL_U_BASE)
120 
121 
122 
123 #define DSS_RCM_BaseAddress (SDL_DSS_RCM_U_BASE)
124 #define DSS_CTRL_BaseAddress (SDL_DSS_CTRL_U_BASE)
125 
126 #ifdef __cplusplus
127 }
128 #endif
129 
130 #endif /* SDL_STC_SOC_H_ */
SDL_STC_INST_MAINR5F0
@ SDL_STC_INST_MAINR5F0
Definition: sdl_stc_soc.h:82
SDL_STC_Inst
SDL_STC_Inst
Definition: sdl_stc_soc.h:80
SDL_STC_resetCauseClear
static void SDL_STC_resetCauseClear(void)
This API is used to clear the reset cause bits for processor core.
INVALID_INSTANCE
@ INVALID_INSTANCE
Definition: sdl_stc_soc.h:85
SDL_STC_INST_DSP
@ SDL_STC_INST_DSP
Definition: sdl_stc_soc.h:83
SDL_STC_NUM_INSTANCES
#define SDL_STC_NUM_INSTANCES
Definition: sdl_stc_soc.h:69
SDL_STC_baseAddress
static uint32_t SDL_STC_baseAddress[SDL_STC_NUM_INSTANCES]
Definition: sdl_stc_soc.h:116