AM261x MCU+ SDK: sdl_stc_soc.h Source File

| AM261x MCU+ SDK 26.00.00 |

sdl_stc_soc.h
Go to the documentation of this file.
1 /********************************************************************
2 * Copyright (C) 2025 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/am261x/sdlr_soc_baseaddress.h>
39 #include <sdl/include/am261x/sdlr_mss_rcm.h>
40 #include <sdl/include/am261x/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 1U
69
75 /*======================================================================================================
76 * Enum for Different Core in SOC
77 ======================================================================================================*/
78
79 typedef enum {
80
81 SDL_STC_INST_MAINR5F0,
82 SDL_STC_INVALID_INSTANCE,
83
84 } SDL_STC_Inst;
85
86 /* @} */
87
88 /* ========================================================================== */
89 /* Function Declarations */
90 /* ========================================================================== */
91
103 static void SDL_STC_resetCauseClearR5F0(void);
104
107 /*======================================================================================================
108 * This is global array gives the BASE ADDRESS of STC modules
109 ======================================================================================================*/
110
111 static uint32_t SDL_STC_baseAddress[SDL_STC_NUM_INSTANCES] = {(uint32_t)SDL_R5SS0_STC_U_BASE};
112
113 #define MSS_RCM_BaseAddress (SDL_MSS_RCM_U_BASE)
114 #define MSS_CTRL_BaseAddress (SDL_MSS_CTRL_U_BASE)
115
116
117
118
119
120 #ifdef __cplusplus
121 }
122 #endif
123
124 #endif /* SDL_STC_SOC_H_ */
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_INVALID_INSTANCE
@ SDL_STC_INVALID_INSTANCE
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.
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:111