 |
MCUSW
|
Go to the documentation of this file.
84 #include "Std_Types.h"
97 #define ARRAYSIZE(array) ((sizeof (array) / \
108 #define MCU_SW_MAJOR_VERSION (10U)
110 #define MCU_SW_MINOR_VERSION (1U)
112 #define MCU_SW_PATCH_VERSION (1U)
122 #define MCU_AR_RELEASE_MAJOR_VERSION (4U)
124 #define MCU_AR_RELEASE_MINOR_VERSION (3U)
126 #define MCU_AR_RELEASE_REVISION_VERSION (1U)
134 #define MCU_VENDOR_ID ((uint16) 44U)
136 #define MCU_MODULE_ID ((uint16) 101U)
138 #define MCU_INSTANCE_ID ((uint8) 0U)
151 #ifndef MCU_E_PARAM_CONFIG
153 #define MCU_E_PARAM_CONFIG (0x0AU)
161 #ifndef MCU_E_PARAM_CLOCK
163 #define MCU_E_PARAM_CLOCK (0x0BU)
169 #ifndef MCU_E_PARAM_MODE
171 #define MCU_E_PARAM_MODE (0x0CU)
177 #ifndef MCU_E_PARAM_RAMSECTION
179 #define MCU_E_PARAM_RAMSECTION (0x0DU)
185 #ifndef MCU_E_PLL_NOT_LOCKED
187 #define MCU_E_PLL_NOT_LOCKED (0x0EU)
195 #define MCU_E_UNINIT (0x0FU)
201 #ifndef MCU_E_PARAM_POINTER
203 #define MCU_E_PARAM_POINTER (0x10U)
209 #ifndef MCU_E_INIT_FAILED
211 #define MCU_E_INIT_FAILED (0x11U)
224 #define MCU_STATUS_UNINIT ((uint8)(0U))
226 #define MCU_STATUS_INIT ((uint8)(1U))
237 #define MCU_SID_INIT (0x00U)
239 #define MCU_SID_INIT_RAM_SECTION (0x01U)
241 #define MCU_SID_INIT_CLOCK (0x02U)
243 #define MCU_SID_DISTRIBUTE_PLL_CLOCK (0x03U)
245 #define MCU_SID_GET_PLL_STATUS (0x04U)
247 #define MCU_SID_GET_RESET_REASON (0x05U)
249 #define MCU_SID_GET_RESET_RAW_VALUE (0x06U)
251 #define MCU_SID_PERFORM_RESET (0x07U)
253 #define MCU_SID_SETMODE (0x08U)
255 #define MCU_SID_GET_VERSION_INFO (0x09U)
257 #define MCU_SID_GET_RAM_STATE (0x0AU)
260 #if defined (SOC_J721E) || defined (SOC_J7200) || defined (SOC_J721S2) || defined (SOC_J784S4) || defined (SOC_J742S2)
268 #define MCU_PERFORM_RESET_MODE_COLD ((uint8) 0U)
271 #define MCU_PERFORM_RESET_MODE_WARM ((uint8) 1U)
273 #define MCU_E_MODE_FAILURE 0U
346 Mcu_ClockConfigPtrType;
355 typedef struct Mcu_ConfigType_s
366 #if defined (SOC_J721E) || defined (SOC_J7200) || defined (SOC_J721S2) || defined (SOC_J784S4) || defined (SOC_J742S2)
406 #if (STD_ON == MCU_INIT_CLOCK_API)
447 #if(STD_OFF == MCU_NO_PLL)
448 FUNC(Std_ReturnType, MCU_CODE) Mcu_DistributePllClock(
void);
452 #if (STD_ON == MCU_PERFORM_RESET_API)
469 FUNC(
void, MCU_CODE) Mcu_PerformReset(
void);
473 #if (STD_ON == MCU_INIT_RAM_API)
495 FUNC(Std_ReturnType, MCU_CODE) Mcu_InitRamSection(
561 #if defined (SOC_J721E) || defined (SOC_J7200) || defined (SOC_J721S2) || defined (SOC_J784S4) || defined (SOC_J742S2)
579 FUNC(
void, MCU_CODE) Mcu_ClearResetReason(
void);
582 #if (STD_ON == MCU_GET_RAM_STATE_API)
607 #if (STD_ON == MCU_GET_VERSION_INFO_API)
631 FUNC(
void, MCU_CODE) Mcu_GetVersionInfo(
Mcu_ClockConfigPtrType Mcu_ClockConfig
Definition: Mcu.h:361
Mcu_ModuleName
Definition: Mcu_Cfg.h:286
MCU_APPL_DATA versioninfo
Definition: Mcu.h:632
uint32 Mcu_RawResetType
This type specifies the identification (ID) for a RAW MCU reset status returned by Mcu_GetResetRawVal...
Definition: Mcu.h:294
Mcu_ModeType Mcu_Mode
Definition: Mcu.h:357
Mcu_SoftResetCBKFunctionPtrType Mcu_SoftReset_CBK_Function
Definition: Mcu.h:368
Mcu_ResetType
This is the type of the reset enumerator containing the subset of reset types. It is not required t...
Definition: Mcu_Cfg.h:261
Mcu_DomainType Domain
Definition: Mcu.h:332
Mcu_ClkModuleIdType Mcu_ClockModuleId
Definition: Mcu.h:326
FUNC(void, MCU_CODE) Mcu_Init(P2CONST(Mcu_ConfigType
This service initializes the MCU driver.
Mcu_ClkSourceIdType
This is the type of the clock source in clock tree that is selectable for peripheral....
Definition: Mcu_Cfg.h:422
Mcu_RamStateType
Enumeration of ranstate queried by Mcu_GetRamState()
Definition: Mcu_Cfg.h:478
AUTOMATIC
Definition: Mcu.h:403
Mcu_CBKFunctionPtrType Mcu_CBK_Function
Definition: Mcu.h:365
Mcu_ClkModuleIdType
Clock source config modules id enum.
Definition: Mcu_Cfg.h:319
uint8 Mcu_ClockType
This type specifies the identification (ID) for a ClockType status used by Mcu_InitClock()
Definition: Mcu.h:285
Structure for module clock setting.
Definition: Mcu.h:325
MCU CONFIG ROOT structure.
Definition: Mcu.h:356
Mcu_ModuleName ModuleName
Definition: Mcu.h:330
Mcu_ClkSourceIdType Mcu_ClockSourceId
Definition: Mcu.h:328
Mcu_DomainType
Definition: Mcu_Cfg.h:275
const struct Mcu_ConfigType_s McuModuleConfiguration_0
MCU Configuration struct declaration.
uint8 Mcu_ResetMode
Definition: Mcu.h:359
uint64 Mcu_ClockFrequency
Definition: Mcu.h:336
uint8 Mcu_RamSectionType
This type specifies the identification (ID) for a RAM section used in Mcu_InitRamSection()
Definition: Mcu.h:303
uint8 Mcu_NumberOfClockConfig
Definition: Mcu.h:363
MCU_PBCFG ConfigPtr
Definition: Mcu.h:403
uint8 Mcu_ModeType
This type specifies the identification (ID) for a MCU mode used in Mcu_SetMode()
Definition: Mcu.h:312
This file contains generated pre compile configuration file for MCU MCAL driver.
Mcu_PllStatusType
This is a status value returned by the function Mcu_GetPllStatus() of the MCU module.
Definition: Mcu_Cfg.h:440
boolean Mcu_InitCfg
Definition: Mcu.h:334
typedef P2CONST(Mcu_ClockConfigType, AUTOMATIC, MCU_PBCFG) Mcu_ClockConfigPtrType
Pointer to Clock Config structure.
P2VAR(Eth_ModeType, AUTOMATIC, ETH_APPL_DATA) CtrlModePtr)