MCUSW
Loading...
Searching...
No Matches
Gpt_Cfg.h
Go to the documentation of this file.
1/*
2*
3* Copyright (c) 2024 Texas Instruments Incorporated
4*
5* All rights reserved not granted herein.
6*
7* Limited License.
8*
9* Texas Instruments Incorporated grants a world-wide, royalty-free, non-exclusive
10* license under copyrights and patents it now or hereafter owns or controls to make,
11* have made, use, import, offer to sell and sell ("Utilize") this software subject to the
12* terms herein. With respect to the foregoing patent license, such license is granted
13* solely to the extent that any such patent is necessary to Utilize the software alone.
14* The patent license shall not apply to any combinations which include this software,
15* other than combinations with devices manufactured by or for TI ("TI Devices").
16* No hardware patent is licensed hereunder.
17*
18* Redistributions must preserve existing copyright notices and reproduce this license
19* (including the above copyright notice and the disclaimer and (if applicable) source
20* code license limitations below) in the documentation and/or other materials provided
21* with the distribution
22*
23* Redistribution and use in binary form, without modification, are permitted provided
24* that the following conditions are met:
25*
26* * No reverse engineering, decompilation, or disassembly of this software is
27* permitted with respect to any software provided in binary form.
28*
29* * any redistribution and use are licensed by TI for use only with TI Devices.
30*
31* * Nothing shall obligate TI to provide you with source code for the software
32* licensed and provided to you in object code.
33*
34* If software source code is provided to you, modification and redistribution of the
35* source code are permitted provided that the following conditions are met:
36*
37* * any redistribution and use of the source code, including any resulting derivative
38* works, are licensed by TI for use only with TI Devices.
39*
40* * any redistribution and use of any object code compiled from the source code
41* and any resulting derivative works, are licensed by TI for use only with TI Devices.
42*
43* Neither the name of Texas Instruments Incorporated nor the names of its suppliers
44*
45* may be used to endorse or promote products derived from this software without
46* specific prior written permission.
47*
48* DISCLAIMER.
49*
50* THIS SOFTWARE IS PROVIDED BY TI AND TI'S LICENSORS "AS IS" AND ANY EXPRESS
51* OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
52* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
53* IN NO EVENT SHALL TI AND TI'S LICENSORS BE LIABLE FOR ANY DIRECT, INDIRECT,
54* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
55* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
56* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
57* OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
58* OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
59* OF THE POSSIBILITY OF SUCH DAMAGE.
60*
61*/
62
71/******************************************************************************
72 Project : AM62DX
73 Date : 2024-12-16 16:34:53
74 SW Ver : 9.0.1
75 Module Rele Ver : AUTOSAR 4.3.1
76
77 This file is generated by EB Tresos
78 Do not modify this file,otherwise the software may behave in unexpected way.
79******************************************************************************/
80
88#ifndef GPT_CFG_H_
89#define GPT_CFG_H_
90
91/* Generic requirements covered mapping */
92/*
93 * Requirements : MCAL-1945
94 */
95/*
96 * Design : DES_GPT_012
97 */
98
99/* ========================================================================== */
100/* Include Files */
101/* ========================================================================== */
102#include "EcuM.h"
103#include "Dem.h"
104#include "Os.h"
105
106
107#ifdef __cplusplus
108extern "C" {
109#endif
110
111/* ========================================================================== */
112/* Macros & Typedefs */
113/* ========================================================================== */
114/*
115 * GPT channels available for user
116 */
118#define GPT_CH_GPTIMER1 (0U)
120#define GPT_CH_GPTIMER2 (1U)
122#define GPT_CH_GPTIMER3 (2U)
124#define GPT_CH_GPTIMER4 (3U)
125
127#define GPT_CH_GPTIMER_MAX (4U)
128
129/*
130 * Requirements : MCAL-2120, MCAL-1945
131 */
132/*
133 * Design : DES_GPT_014
134 */
139#define GPT_PRE_COMPILE_VARIANT (STD_OFF)
147#define GPT_ISR_VOID (0x00U)
149#define GPT_ISR_CAT1 (0x01U)
151#define GPT_ISR_CAT2 (0x02U)
152/* @} */
153
154
155/*
156 * Requirements : MCAL-1946
157 */
158/*
159 * Design : DES_GPT_012
160 */
162#define GPT_DEV_ERROR_DETECT (STD_ON)
164#define GPT_ISR_TYPE (GPT_ISR_CAT2)
165
167#define GPT_REPORT_WAKEUP_SOURCE (STD_ON)
173#define GPT_VERSION_INFO_API (STD_ON)
174/*
175 * Requirements : MCAL-1964
176 */
177/*
178 * Design : DES_GPT_022
179 */
181#define GPT_DEINIT_API (STD_ON)
183/*
184 * Requirements : MCAL-1966
185 */
186/*
187 * Design : DES_GPT_023
188 */
189#define GPT_TIME_ELAPSED_API (STD_ON)
191/*
192 * Requirements : MCAL-1967
193 */
194/*
195 * Design : DES_GPT_024
196 */
197#define GPT_TIME_REMAINING_API (STD_ON)
198/*
199 * Requirements : MCAL-1965
200 */
201/*
202 * Design : DES_GPT_028
203 */
205#define GPT_ENABLE_DISABLE_NOTIFICATION_API (STD_ON)
206/*
207 * Requirements : MCAL-1968, MCAL-1969,
208 */
209/*
210 * Design : DES_GPT_030, DES_GPT_031, DES_GPT_032,
211 * DES_GPT_033
212 */
214#define GPT_WAKEUP_FUNCTIONALITY_API (STD_ON)
215/* @} */
216
217/*
218 * Requirements : MCAL-1952, MCAL-1953
219 */
220/*
221 * Design : DES_GPT_012, DES_GPT_018
222 */
224#define GPT_MAX_CHANNELS (4U)
225
230#define GPT_PREDEF_TIMER_TYPE (GPT_PREDEF_TIMER_DISABLED)
231
234#define GPT_PREDEF_TIMER_1US_ENABLING_GRADE (GPT_PREDEF_TIMER_1US_DISABLED)
235
241#define GPT_TIMEOUT_DURATION (32000U)
242
251#ifndef GPT_E_HARDWARE_ERROR
253#define GPT_E_HARDWARE_ERROR (DemConf_DemEventParameter_GPT_E_HARDWARE_ERROR)
254#endif
255
256/* @} */
257
259#define GPT_REGISTER_READBACK_API (STD_ON)
264#define GptConf_GptChannelConfiguration_MCU_TIMER0 (0U)
266#define GptConf_GptChannelConfiguration_MCU_TIMER1 (1U)
268#define GptConf_GptChannelConfiguration_MCU_TIMER2 (2U)
270#define GptConf_GptChannelConfiguration_MCU_TIMER3 (3U)
273/* ========================================================================== */
274/* Structures and Enums */
275/* ========================================================================== */
280extern const struct Gpt_ConfigType_s GptChannelConfigSet;
281
282/* ========================================================================== */
283/* Global Variables */
284/* ========================================================================== */
286extern const uint32 Gpt_TimerBaseAddr[GPT_CH_GPTIMER_MAX];
287
288/* ========================================================================== */
289/* Function Declarations */
290/* ========================================================================== */
296ISR(Gpt_Ch1Isr);
297
299ISR(Gpt_Ch2Isr);
300
302ISR(Gpt_Ch3Isr);
303
305ISR(Gpt_Ch4Isr);
306
307#ifdef __cplusplus
308}
309#endif
310
311
312
313
314
315
316
317
318#endif /* #ifndef GPT_CFG_H_ */
319
320/* @} */
#define GPT_CH_GPTIMER_MAX
maximum GP timer channels available
Definition Gpt_Cfg.h:127
const struct Gpt_ConfigType_s GptChannelConfigSet
GPT Configuration.
ISR(Gpt_Ch1Isr)
GPT Channel ISR.
const uint32 Gpt_TimerBaseAddr[GPT_CH_GPTIMER_MAX]
Base Address of the timer peripherals.