AM273x MCU+ SDK  09.02.00
reset/sdl_reset.h
Go to the documentation of this file.
1 /********************************************************************
2  * Copyright (C) 2023 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  * Name : sdl_reset.h
33 */
51 #ifndef SDL_RESET_H_
52 #define SDL_RESET_H_
53 
54 #ifdef __cplusplus
55 extern "C"
56 {
57 #endif
58 
59 /* ========================================================================== */
60 /* Include Files */
61 /* ========================================================================== */
62 
63 
64 #include <stdbool.h>
65 #include <stdint.h>
66 #include <sdl/include/hw_types.h>
67 #include <sdl/include/sdl_types.h>
68 #include <sdl/sdlr.h>
70 #include <sdl/soc.h>
71 
72 
88 /**************************************************************************
89 * RESET MACROS :
90 **************************************************************************/
100 /* ========================================================================== */
101 /* Structures */
102 /* ========================================================================== */
103 
104 
116 typedef enum SDL_SOC_WarmResetCause_e
117 {
138 
143 /* ========================================================================== */
144 /* Global Variables */
145 /* ========================================================================== */
146 
147 /* None */
148 
149 /* ========================================================================== */
150 /* Function Declarations */
151 /* ========================================================================== */
152 
164 uint32_t SDL_r5fGetResetCause(void);
165 
170 
176 uint32_t SDL_getWarmResetCause(void);
177 
182 
187 #ifdef __cplusplus
188 }
189 #endif
190 #endif /* SDLR_RESET_H_ */
SDL_WarmResetCause_MSS_WDT
@ SDL_WarmResetCause_MSS_WDT
Value specifying MSS WDT.
Definition: reset/sdl_reset.h:125
SDL_SOC_WarmResetCause
SDL_SOC_WarmResetCause
Definition: reset/sdl_reset.h:117
SDL_r5fGetResetCause
uint32_t SDL_r5fGetResetCause(void)
Get R5 reset cause.
SDL_getWarmResetCause
uint32_t SDL_getWarmResetCause(void)
Returns cause of WARM reset.
SDL_WarmResetCause_POWER_ON_RESET
@ SDL_WarmResetCause_POWER_ON_RESET
Value specifying Power ON Reset.
Definition: reset/sdl_reset.h:121
sdl_soc_reset.h
SDL_rcmDspLocalReset
void SDL_rcmDspLocalReset(void)
Reset Dsp Core.
SDL_WarmResetCause_TOP_RCM_WARM_RESET_CONFIG
@ SDL_WarmResetCause_TOP_RCM_WARM_RESET_CONFIG
Value specifying Software Warm Reset.
Definition: reset/sdl_reset.h:129
SDL_WarmResetCause_HSM_WDT
@ SDL_WarmResetCause_HSM_WDT
Value specifying HSM WDT.
Definition: reset/sdl_reset.h:137
SDL_WarmResetCause_EXT_PAD_RESET
@ SDL_WarmResetCause_EXT_PAD_RESET
Value specifying External Pad Reset.
Definition: reset/sdl_reset.h:133
sdlr.h
This file contains the macro definations for Register layer.
SDL_generateSwWarmReset
void SDL_generateSwWarmReset(void)
Generate SW WARM reset.