84 #include "Std_Types.h" 98 #define ARRAYSIZE(array) ((sizeof (array) / \ 109 #define MCU_SW_MAJOR_VERSION (9U) 111 #define MCU_SW_MINOR_VERSION (0U) 113 #define MCU_SW_PATCH_VERSION (0U) 123 #define MCU_AR_RELEASE_MAJOR_VERSION (4U) 125 #define MCU_AR_RELEASE_MINOR_VERSION (3U) 127 #define MCU_AR_RELEASE_REVISION_VERSION (1U) 135 #define MCU_VENDOR_ID ((uint16) 44U) 137 #define MCU_MODULE_ID ((uint16) 101U) 139 #define MCU_INSTANCE_ID ((uint8) 0U) 150 #define MCU_TEST_CFG_ID_1 (0x01U) 152 #define MCU_TEST_CFG_ID_2 (0x02U) 154 #define MCU_TEST_CFG_ID_3 (0x04U) 166 #ifndef MCU_E_PARAM_CONFIG 168 #define MCU_E_PARAM_CONFIG (0x0AU) 176 #ifndef MCU_E_PARAM_CLOCK 178 #define MCU_E_PARAM_CLOCK (0x0BU) 184 #ifndef MCU_E_PARAM_MODE 186 #define MCU_E_PARAM_MODE (0x0CU) 192 #ifndef MCU_E_PARAM_RAMSECTION 194 #define MCU_E_PARAM_RAMSECTION (0x0DU) 200 #ifndef MCU_E_PLL_NOT_LOCKED 202 #define MCU_E_PLL_NOT_LOCKED (0x0EU) 210 #define MCU_E_UNINIT (0x0FU) 216 #ifndef MCU_E_PARAM_POINTER 218 #define MCU_E_PARAM_POINTER (0x10U) 224 #ifndef MCU_E_INIT_FAILED 226 #define MCU_E_INIT_FAILED (0x11U) 239 #define MCU_STATUS_UNINIT ((uint8)(0U)) 241 #define MCU_STATUS_INIT ((uint8)(1U)) 252 #define MCU_SID_INIT (0x00U) 254 #define MCU_SID_INIT_RAM_SECTION (0x01U) 256 #define MCU_SID_INIT_CLOCK (0x02U) 258 #define MCU_SID_DISTRIBUTE_PLL_CLOCK (0x03U) 260 #define MCU_SID_GET_PLL_STATUS (0x04U) 262 #define MCU_SID_GET_RESET_REASON (0x05U) 264 #define MCU_SID_GET_RESET_RAW_VALUE (0x06U) 266 #define MCU_SID_PERFORM_RESET (0x07U) 268 #define MCU_SID_SETMODE (0x08U) 270 #define MCU_SID_GET_VERSION_INFO (0x09U) 272 #define MCU_SID_GET_RAM_STATE (0x0AU) 275 #if defined (SOC_J721E) || defined (SOC_J7200) || defined (SOC_J721S2) || defined (SOC_J784S4) 283 #define MCU_PERFORM_RESET_MODE_COLD ((uint8) 0U) 286 #define MCU_PERFORM_RESET_MODE_WARM ((uint8) 1U) 288 #define MCU_E_MODE_FAILURE 0U 370 typedef struct Mcu_ConfigType_s
421 #if (STD_ON == MCU_INIT_CLOCK_API) 462 #if(STD_OFF == MCU_NO_PLL) 467 #if (STD_ON == MCU_PERFORM_RESET_API) 488 #if (STD_ON == MCU_INIT_RAM_API) 576 #if defined (SOC_J721E) || defined (SOC_J7200) || defined (SOC_J721S2) || defined (SOC_J784S4) 597 #if (STD_ON == MCU_GET_RAM_STATE_API) 622 #if (STD_ON == MCU_GET_VERSION_INFO_API) 647 P2VAR(Std_VersionInfoType, AUTOMATIC, MCU_APPL_DATA) versioninfo);
Mcu_ClkSourceIdType
This is the type of the clock source in clock tree that is selectable for peripheral....
Definition: Mcu_Cfg.h:402
Mcu_ClkModuleIdType
Clock source config modules id enum.
Definition: Mcu_Cfg.h:301
MCU CONFIG ROOT structure.
Definition: Mcu.h:370
void Mcu_SetMode(const Mcu_ModeType *McuMode)
This service activates the MCU power modes.
Mcu_RawResetType Mcu_GetResetRawValue(void)
The service reads the reset type from the hardware register, if supported.
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:245
Mcu_ModuleName
Definition: Mcu_Cfg.h:270
Mcu_ClkSourceIdType Mcu_ClockSourceId
Definition: Mcu.h:343
This file contains generated pre compile configuration file for MCU MCAL driver.
uint8 Mcu_NumberOfClockConfig
Definition: Mcu.h:378
Std_ReturnType(* Mcu_CBKFunctionPtrType)(uint32 moduleId, uint32 clkId, uint64 ParentId)
Pointer to Callback function.
Definition: Mcu_Cfg.h:504
uint8 Mcu_ResetMode
Definition: Mcu.h:374
uint8 Mcu_ClockType
This type specifies the identification (ID) for a ClockType status used by Mcu_InitClock()
Definition: Mcu.h:300
Mcu_RamStateType
Enumeration of ranstate queried by Mcu_GetRamState()
Definition: Mcu_Cfg.h:458
uint8 Mcu_ModeType
This type specifies the identification (ID) for a MCU mode used in Mcu_SetMode()
Definition: Mcu.h:327
Structure for module clock setting.
Definition: Mcu.h:339
Mcu_DomainType
Definition: Mcu_Cfg.h:259
Mcu_RamStateType Mcu_GetRamState(void)
This service provides the actual status of the microcontroller Ram. (if supported)
Mcu_ClkModuleIdType Mcu_ClockModuleId
Definition: Mcu.h:341
Std_ReturnType Mcu_InitClock(Mcu_ClockType ClockSetting)
This service initializes the PLL and other MCU specific clock options.
Mcu_PllStatusType Mcu_GetPllStatus(void)
This service provides the lock status of the PLL.
const struct Mcu_ConfigType_s McuModuleConfiguration_0
MCU Configuration struct declaration.
uint64 Mcu_ClockFrequency
Definition: Mcu.h:351
void Mcu_Init(const Mcu_ConfigType *ConfigPtr)
This service initializes the MCU driver.
Mcu_CBKFunctionPtrType Mcu_CBK_Function
Definition: Mcu.h:380
void Mcu_ClearResetReason(void)
Clear the Mcu Reset reason by clearing the reset reason register.
uint8 Mcu_RamSectionType
This type specifies the identification (ID) for a RAM section used in Mcu_InitRamSection()
Definition: Mcu.h:318
Mcu_DomainType Domain
Definition: Mcu.h:347
void Mcu_GetVersionInfo(Std_VersionInfoType *versioninfo)
This service returns the version information of this module.
boolean Mcu_InitCfg
Definition: Mcu.h:349
void Mcu_PerformReset(void)
The service performs a microcontroller reset.
Std_ReturnType Mcu_DistributePllClock(void)
This service activates the PLL clock to the MCU clock distribution.
Mcu_ModeType Mcu_Mode
Definition: Mcu.h:372
Mcu_PllStatusType
This is a status value returned by the function Mcu_GetPllStatus() of the MCU module.
Definition: Mcu_Cfg.h:420
Std_ReturnType Mcu_InitRamSection(Mcu_RamSectionType RamSection)
This service initializes the RAM section wise.
uint32 Mcu_RawResetType
This type specifies the identification (ID) for a RAW MCU reset status returned by Mcu_GetResetRawVal...
Definition: Mcu.h:309
Mcu_ClockConfigPtrType Mcu_ClockConfig
Definition: Mcu.h:376
Std_ReturnType Mcu_ClockSetSource(Mcu_ClkModuleIdType moduleId, Mcu_ClkSourceIdType clkSrcId, uint8 clkParentId)
Mcu_ResetType Mcu_GetResetReason(void)
The service reads the reset type from the hardware, if supported.
Mcu_ModuleName ModuleName
Definition: Mcu.h:345