Infineon MOTIX™ MCU TLE988x/9x Device Family SDK
tle_device.h
Go to the documentation of this file.
1 /*
2  ***********************************************************************************************************************
3  *
4  * Copyright (c) Infineon Technologies AG
5  * All rights reserved.
6  *
7  * The applicable license agreement can be found at this pack's installation directory in the file
8  * license/IFX_SW_Licence_MOTIX_LITIX.txt
9  *
10  **********************************************************************************************************************/
22 /*******************************************************************************
23 ** Author(s) Identity **
24 ********************************************************************************
25 ** Initials Name **
26 ** ---------------------------------------------------------------------------**
27 ** DM Daniel Mysliwitz **
28 ** BG Blandine Guillot **
29 ** JO Julia Ott **
30 ** PS Patrik Schwarz **
31 *******************************************************************************/
32 
33 /*******************************************************************************
34 ** Revision Control History **
35 ********************************************************************************
36 ** V0.1.0: 2019-10-28, DM: Initial version **
37 ** V0.2.0: 2020-04-28, BG: Updated revision history format **
38 ** V0.2.1: 2020-09-16, DM: BRDV_initCP() call to TLE_init() added **
39 ** V0.2.2: 2020-10-21, BG: EP-537: Updated placement for interrupt init and **
40 ** added placeholder for CAN **
41 ** V0.2.3: 2020-10-21, BG: EP-539: Considered return codes for TLE_init **
42 ** V0.2.4: 2020-10-22, JO: EP-539: Removed dependency of the init functions **
43 ** on previous error codes in TLE_init **
44 ** V0.2.5: 2020-10-26, BG: EP-550: Added missing ADC2 initialization in **
45 ** TLE_init() **
46 ** V0.2.6: 2020-11-12, JO: EP-590: Removed \param none and \return none to **
47 ** avoid doxygen warning **
48 ** V0.2.7: 2020-11-20, BG: EP-610: Corrected MISRA 2012 errors **
49 ** The following rules are globally deactivated: **
50 ** - Info 774: Boolean within 'if' always evaluates **
51 ** to False/True **
52 ** V0.2.8: 2020-12-18, BG: EP-652: Corrected name of error code variable **
53 ** V0.3.0: 2020-12-30, JO: EP-659: Added missing CANTRX initialization in **
54 ** TLE_init() (function CANTRX_init) **
55 ** V0.3.1: 2021-02-02, BG: EP-654: Separated CAN into CANCONTR and CANTRX **
56 ** V0.3.2: 2021-04-23, JO: EP-776: Added and initialized global variables **
57 ** UC_FLASH0_UBSL_SIZE, UC_FLASH0_UDATA_START, **
58 ** UC_FLASH0_UDATA_SIZE **
59 ** V0.3.3: 2021-06-08, BG: EP-685: Activated the init function for DMA **
60 ** V0.3.4: 2021-11-12, JO: EP-937: Updated copyright and branding **
61 ** V0.3.5: 2023-04-04, PS: EP-1141: Correct MISRA warnings **
62 ** V0.3.6: 2023-04-06, JO: EP-1143: Added error handling for module used in **
63 ** Config Wizard but not enabled in RTE/package **
64 ** manager **
65 ** V0.3.7: 2023-05-09, BG: EP-1428: Updated calculation of UBSL region size **
66 ** with FW API user_nvm_config_get(**) after SVD **
67 ** update **
68 ** V0.3.8: 2023-10-19, JO: EP-1471: Corrected SDADC handling when using **
69 ** a device without SDADC **
70 ** V0.3.9: 2023-05-06, JO: EP-1481: Corrected calculation of **
71 ** UC_FLASH0_UBSL_SIZE **
72 ** V0.4.0: 2024-11-05, JO: EP-1494: Updated license **
73 *******************************************************************************/
74 
75 #ifndef _TLE_DEVICE_H
76 #define _TLE_DEVICE_H
77 
78 /*******************************************************************************
79 ** Includes **
80 *******************************************************************************/
81 
82 #include "tle_variants.h"
83 #include "RTE_Components.h"
84 
85 #ifdef RTE_DEVICE_TLELIB_ADC1
86  #include "adc1.h"
87 #endif
88 #ifdef RTE_DEVICE_TLELIB_ADC2
89  #include "adc2.h"
90 #endif
91 #ifdef RTE_DEVICE_TLELIB_BDRV
92  #include "bdrv.h"
93 #endif
94 #ifdef RTE_DEVICE_TLELIB_BOOTROM
95  #include "bootrom.h"
96 #endif
97 #ifdef RTE_DEVICE_TLELIB_CANCONTR
98  #include "can.h"
99 #endif
100 #ifdef RTE_DEVICE_TLELIB_CANTRX
101  #include "cantrx.h"
102 #endif
103 #ifdef RTE_DEVICE_TLELIB_CCU7
104  #include "ccu7.h"
105 #endif
106 #ifdef RTE_DEVICE_TLELIB_CSACSC
107  #include "csacsc.h"
108 #endif
109 #ifdef RTE_DEVICE_TLELIB_DMA
110  #include "dma.h"
111 #endif
112 #ifdef RTE_DEVICE_TLELIB_GPIO
113  #include "gpio.h"
114 #endif
115 #ifdef RTE_DEVICE_TLELIB_GPT12
116  #include "gpt12.h"
117 #endif
118 #ifdef RTE_DEVICE_TLELIB_INT
119  #include "int.h"
120 #endif
121 #ifdef RTE_DEVICE_TLELIB_ISR
122  #include "isr.h"
123 #endif
124 #ifdef RTE_DEVICE_TLELIB_MON
125  #include "mon.h"
126 #endif
127 #ifdef RTE_DEVICE_TLELIB_PMU
128  #include "pmu.h"
129 #endif
130 #ifdef RTE_DEVICE_TLELIB_SCU
131  #include "scu.h"
132 #endif
133 #ifdef RTE_DEVICE_TLELIB_SDADC
134  #include "sdadc.h"
135 #endif
136 #ifdef RTE_DEVICE_TLELIB_SSC
137  #include "ssc.h"
138 #endif
139 #ifdef RTE_DEVICE_TLELIB_TIMER2X
140  #include "timer2x.h"
141 #endif
142 #ifdef RTE_DEVICE_TLELIB_UART
143  #include "uart.h"
144 #endif
145 
146 /*******************************************************************************
147 ** Global Variable Declarations **
148 *******************************************************************************/
152 
153 
154 /*******************************************************************************
155 ** Global Function Declarations **
156 *******************************************************************************/
161 sint8 TLE_init(void);
162 
163 #endif
ADC1 low level access library.
ADC2 low level access library.
Bridge Driver low level access library.
BootROM low level access library.
CAN low level access library.
CANTRX low level access library.
CCU7 low level access library.
CSACSC low level access library.
Direct Memory Access low level access library.
GPIO low level access library.
GPT12 low level access library.
Interrupt low level access library.
Interrupt Service Routines low level access library.
High Voltage Monitor Input low level access library.
PMU low level access library.
System Control Unit low level access library.
Sigma Delta ADC low level access library.
High-Speed Synchronous Serial Interface low level access library.
Timer20/Timer21 low level access library.
uint32 UC_FLASH0_UDATA_SIZE
Definition: tle_device.c:38
sint8 TLE_init(void)
Initialize the TLE modules.
Definition: tle_device.c:151
uint32 UC_FLASH0_UBSL_SIZE
Definition: tle_device.c:36
uint32 UC_FLASH0_UDATA_START
Definition: tle_device.c:37
Device specific memory layout defines and features.
int8_t sint8
8 bit signed value
Definition: types.h:209
uint32_t uint32
32 bit unsigned value
Definition: types.h:206
UART low level access library.