# 1 "../../../mcal/Dio_ZX_K14xM/Src/Dio_Drvw.c" # 1 "" 1 # 1 "" 3 # 387 "" 3 # 1 "" 1 # 1 "" 2 # 1 "../../../mcal/Dio_ZX_K14xM/Src/Dio_Drvw.c" 2 # 26 "../../../mcal/Dio_ZX_K14xM/Src/Dio_Drvw.c" # 1 "../../../mcal/Dio_ZX_K14xM/Inc\\Dio_Drvw.h" 1 # 29 "../../../mcal/Dio_ZX_K14xM/Inc\\Dio_Drvw.h" # 1 "../../../mcal/Dio_ZX_K14xM/Inc/Dio_Drvw_Types.h" 1 # 28 "../../../mcal/Dio_ZX_K14xM/Inc/Dio_Drvw_Types.h" # 1 "../../../mcal/Dio_ZX_K14xM/Inc/Gpio_Drv_Types.h" 1 # 28 "../../../mcal/Dio_ZX_K14xM/Inc/Gpio_Drv_Types.h" # 1 "../../../mcal/Base_ZX_K14xM/Inc\\Std_Types.h" 1 # 30 "../../../mcal/Base_ZX_K14xM/Inc\\Std_Types.h" # 1 "../../../mcal/Base_ZX_K14xM/Inc/Platform_Types.h" 1 # 86 "../../../mcal/Base_ZX_K14xM/Inc/Platform_Types.h" typedef unsigned char boolean; typedef unsigned char uint8; typedef unsigned short uint16; typedef unsigned int uint32; typedef unsigned long long uint64; typedef signed char sint8; typedef signed short sint16; typedef signed int sint32; typedef signed long long sint64; typedef unsigned long uint8_least; typedef unsigned long uint16_least; typedef unsigned long uint32_least; typedef signed long sint8_least; typedef signed long sint16_least; typedef signed long sint32_least; typedef float float32; typedef double float64; typedef void *VoidPtr; typedef const void *ConstVoidPtr; # 31 "../../../mcal/Base_ZX_K14xM/Inc\\Std_Types.h" 2 # 1 "../../../mcal/Base_ZX_K14xM/Inc/Compiler.h" 1 # 31 "../../../mcal/Base_ZX_K14xM/Inc/Compiler.h" # 1 "../../../mcal/Base_ZX_K14xM/Inc/Compiler_Cfg.h" 1 # 32 "../../../mcal/Base_ZX_K14xM/Inc/Compiler.h" 2 # 32 "../../../mcal/Base_ZX_K14xM/Inc\\Std_Types.h" 2 # 63 "../../../mcal/Base_ZX_K14xM/Inc\\Std_Types.h" typedef unsigned char StatusType; # 104 "../../../mcal/Base_ZX_K14xM/Inc\\Std_Types.h" typedef uint8 Std_ReturnType; typedef uint8 Std_TransformerClass; typedef uint8 Std_TransformerForwardCode; typedef uint8 Std_MessageTypeType; typedef uint8 Std_MessageResultType; typedef struct { uint16 vendorID; uint16 moduleID; uint8 sw_major_version; uint8 sw_minor_version; uint8 sw_patch_version; } Std_VersionInfoType; typedef struct { uint8 errorCode; Std_TransformerClass transformerClass; } Std_TransformerError; typedef struct { Std_TransformerForwardCode errorCode; Std_TransformerClass transformerClass; } Std_TransformerForward; typedef Std_ReturnType (*Std_ExtractProtocolHeaderFieldsType)(const uint8 *buffer, uint32 bufferLength, Std_MessageTypeType *messageType, Std_MessageResultType *messageResult); # 29 "../../../mcal/Dio_ZX_K14xM/Inc/Gpio_Drv_Types.h" 2 # 1 "../../../mcal/McalLib_ZX_K14xM/Inc\\McalLib.h" 1 # 29 "../../../mcal/McalLib_ZX_K14xM/Inc\\McalLib.h" # 1 "../../../mcal/McalLib_ZX_K14xM/Inc/McalLib_Compiler.h" 1 # 30 "../../../mcal/McalLib_ZX_K14xM/Inc/McalLib_Compiler.h" # 1 "../Generated/inc\\McalLib_Cfg.h" 1 # 31 "../../../mcal/McalLib_ZX_K14xM/Inc/McalLib_Compiler.h" 2 # 273 "../../../mcal/McalLib_ZX_K14xM/Inc/McalLib_Compiler.h" static inline uint32 McalLib_ReadControlReg(void) { uint32 res; __asm("MRS %0,CONTROL" : "=r" (res)); return res; } # 290 "../../../mcal/McalLib_ZX_K14xM/Inc/McalLib_Compiler.h" static inline uint32 McalLib_ReadIpsrReg(void) { uint32 res; __asm("MRS %0,IPSR" : "=r" (res)); return res; } # 305 "../../../mcal/McalLib_ZX_K14xM/Inc/McalLib_Compiler.h" static inline uint32 McalLib_ReadPriMaskReg(void) { uint32 res; __asm("MRS %0,PRIMASK" : "=r" (res)); return res; } # 30 "../../../mcal/McalLib_ZX_K14xM/Inc\\McalLib.h" 2 # 184 "../../../mcal/McalLib_ZX_K14xM/Inc\\McalLib.h" typedef enum { MCALLIB_COUNTER_SOFTWARE, MCALLIB_COUNTER_OS, } McalLib_CounterType; typedef struct { uint32 CounterId; uint32 CounterFreq; } McalLib_ConfigType; # 1 "../../../mcal/Base_ZX_K14xM/Inc/MemMap\\McalLib_MemMap.h" 1 # 876 "../../../mcal/Base_ZX_K14xM/Inc/MemMap\\McalLib_MemMap.h" #pragma clang section rodata = ".mcal_config_data" # 211 "../../../mcal/McalLib_ZX_K14xM/Inc\\McalLib.h" 2 extern const McalLib_ConfigType *const McalLib_PreDefinedConfigPtr[(1U)]; # 1 "../../../mcal/Base_ZX_K14xM/Inc/MemMap\\McalLib_MemMap.h" 1 # 892 "../../../mcal/Base_ZX_K14xM/Inc/MemMap\\McalLib_MemMap.h" #pragma clang section rodata = "" # 216 "../../../mcal/McalLib_ZX_K14xM/Inc\\McalLib.h" 2 # 230 "../../../mcal/McalLib_ZX_K14xM/Inc\\McalLib.h" extern void Sys_SystemReset(void); # 1 "../../../mcal/Base_ZX_K14xM/Inc/MemMap\\McalLib_MemMap.h" 1 # 1072 "../../../mcal/Base_ZX_K14xM/Inc/MemMap\\McalLib_MemMap.h" #pragma clang section text = ".mcal_code" # 234 "../../../mcal/McalLib_ZX_K14xM/Inc\\McalLib.h" 2 void McalLib_Init(void); # 254 "../../../mcal/McalLib_ZX_K14xM/Inc\\McalLib.h" Std_ReturnType McalLib_GetCounterValue(McalLib_CounterType Counter, uint32 *Value); # 270 "../../../mcal/McalLib_ZX_K14xM/Inc\\McalLib.h" Std_ReturnType McalLib_GetElapsedValue(McalLib_CounterType Counter, uint32 *const CounterValue, uint32 *ElapsedValue); # 282 "../../../mcal/McalLib_ZX_K14xM/Inc\\McalLib.h" uint32 McalLib_MicroSecToTicks(McalLib_CounterType Counter, uint32 MicroSecond); # 296 "../../../mcal/McalLib_ZX_K14xM/Inc\\McalLib.h" void McalLib_SetCounterFreq(McalLib_CounterType Counter, uint32 Freq); # 309 "../../../mcal/McalLib_ZX_K14xM/Inc\\McalLib.h" static inline void McalLib_Assert(const uint8 *File, uint32 Line) { (void)File; (void)Line; for (;;) { } } # 327 "../../../mcal/McalLib_ZX_K14xM/Inc\\McalLib.h" void McalLib_SuspendAllInterrupts(void); void McalLib_ResumeAllInterrupts(void); # 1 "../../../mcal/Base_ZX_K14xM/Inc/MemMap\\McalLib_MemMap.h" 1 # 1088 "../../../mcal/Base_ZX_K14xM/Inc/MemMap\\McalLib_MemMap.h" #pragma clang section text = "" # 339 "../../../mcal/McalLib_ZX_K14xM/Inc\\McalLib.h" 2 # 30 "../../../mcal/Dio_ZX_K14xM/Inc/Gpio_Drv_Types.h" 2 # 69 "../../../mcal/Dio_ZX_K14xM/Inc/Gpio_Drv_Types.h" typedef uint32 Gpio_Drv_PinsChannelType; typedef uint8 Gpio_Drv_PinsLevelType; # 29 "../../../mcal/Dio_ZX_K14xM/Inc/Dio_Drvw_Types.h" 2 # 1 "../Generated/inc\\Dio_Drvw_Cfg.h" 1 # 30 "../../../mcal/Dio_ZX_K14xM/Inc/Dio_Drvw_Types.h" 2 # 88 "../../../mcal/Dio_ZX_K14xM/Inc/Dio_Drvw_Types.h" typedef uint8 Dio_Drvw_PortType; typedef uint16 Dio_Drvw_ChannelType; typedef uint32 Dio_Drvw_PortLevelType; typedef uint8 Dio_Drvw_LevelType; typedef struct { Dio_Drvw_PortType PortId; uint8 BitOffset; Dio_Drvw_PortLevelType GroupMask; } Dio_Drvw_ChannelGroupType; typedef struct { uint8 ChannelGroupNum; const Dio_Drvw_ChannelGroupType *ChannelGroupListPtr; const uint32 *ChannelPartitionMapPtr; const uint32 *PortPartitionMapPtr; } Dio_Drvw_ConfigType; # 30 "../../../mcal/Dio_ZX_K14xM/Inc\\Dio_Drvw.h" 2 # 79 "../../../mcal/Dio_ZX_K14xM/Inc\\Dio_Drvw.h" # 1 "../../../mcal/Base_ZX_K14xM/Inc/MemMap\\Dio_MemMap.h" 1 # 1072 "../../../mcal/Base_ZX_K14xM/Inc/MemMap\\Dio_MemMap.h" #pragma clang section text = ".mcal_code" # 80 "../../../mcal/Dio_ZX_K14xM/Inc\\Dio_Drvw.h" 2 # 93 "../../../mcal/Dio_ZX_K14xM/Inc\\Dio_Drvw.h" Dio_Drvw_LevelType Dio_Drvw_FlipChannel(Dio_Drvw_ChannelType ChannelId); # 107 "../../../mcal/Dio_ZX_K14xM/Inc\\Dio_Drvw.h" void Dio_Drvw_MaskedWritePort(Dio_Drvw_PortType PortId, Dio_Drvw_PortLevelType Level, Dio_Drvw_PortLevelType Mask); # 120 "../../../mcal/Dio_ZX_K14xM/Inc\\Dio_Drvw.h" Dio_Drvw_LevelType Dio_Drvw_ReadChannel(Dio_Drvw_ChannelType ChannelId); # 130 "../../../mcal/Dio_ZX_K14xM/Inc\\Dio_Drvw.h" Dio_Drvw_PortLevelType Dio_Drvw_ReadPort(Dio_Drvw_PortType PortId); # 140 "../../../mcal/Dio_ZX_K14xM/Inc\\Dio_Drvw.h" Dio_Drvw_PortLevelType Dio_Drvw_ReadChannelGroup(const Dio_Drvw_ChannelGroupType *ChannelGroupIdPtr); # 151 "../../../mcal/Dio_ZX_K14xM/Inc\\Dio_Drvw.h" void Dio_Drvw_WriteChannel(Dio_Drvw_ChannelType ChannelId, Dio_Drvw_LevelType Level); # 160 "../../../mcal/Dio_ZX_K14xM/Inc\\Dio_Drvw.h" void Dio_Drvw_WritePort(Dio_Drvw_PortType PortId, Dio_Drvw_PortLevelType Level); # 171 "../../../mcal/Dio_ZX_K14xM/Inc\\Dio_Drvw.h" void Dio_Drvw_WriteChannelGroup(const Dio_Drvw_ChannelGroupType *ChannelGroupIdPtr, Dio_Drvw_PortLevelType Level); # 1 "../../../mcal/Base_ZX_K14xM/Inc/MemMap\\Dio_MemMap.h" 1 # 1088 "../../../mcal/Base_ZX_K14xM/Inc/MemMap\\Dio_MemMap.h" #pragma clang section text = "" # 177 "../../../mcal/Dio_ZX_K14xM/Inc\\Dio_Drvw.h" 2 # 27 "../../../mcal/Dio_ZX_K14xM/Src/Dio_Drvw.c" 2 # 1 "../../../mcal/Dio_ZX_K14xM/Inc\\Gpio_Drv.h" 1 # 75 "../../../mcal/Dio_ZX_K14xM/Inc\\Gpio_Drv.h" # 1 "../../../mcal/Base_ZX_K14xM/Inc/MemMap\\Dio_MemMap.h" 1 # 1072 "../../../mcal/Base_ZX_K14xM/Inc/MemMap\\Dio_MemMap.h" #pragma clang section text = ".mcal_code" # 76 "../../../mcal/Dio_ZX_K14xM/Inc\\Gpio_Drv.h" 2 # 92 "../../../mcal/Dio_ZX_K14xM/Inc\\Gpio_Drv.h" Gpio_Drv_PinsLevelType Gpio_Drv_ReadPin(const uint32 Base, Gpio_Drv_PinsChannelType Pin); # 103 "../../../mcal/Dio_ZX_K14xM/Inc\\Gpio_Drv.h" void Gpio_Drv_WritePin(const uint32 Base, Gpio_Drv_PinsChannelType Pin, Gpio_Drv_PinsLevelType Value); # 116 "../../../mcal/Dio_ZX_K14xM/Inc\\Gpio_Drv.h" void Gpio_Drv_TogglePins(const uint32 Base, Gpio_Drv_PinsChannelType Pins); # 126 "../../../mcal/Dio_ZX_K14xM/Inc\\Gpio_Drv.h" Gpio_Drv_PinsChannelType Gpio_Drv_GetPinsOutput(const uint32 Base); # 136 "../../../mcal/Dio_ZX_K14xM/Inc\\Gpio_Drv.h" Gpio_Drv_PinsChannelType Gpio_Drv_ReadPins(const uint32 Base); # 146 "../../../mcal/Dio_ZX_K14xM/Inc\\Gpio_Drv.h" void Gpio_Drv_WritePort(const uint32 Base, Gpio_Drv_PinsChannelType Pins); # 156 "../../../mcal/Dio_ZX_K14xM/Inc\\Gpio_Drv.h" void Gpio_Drv_SetPins(const uint32 Base, Gpio_Drv_PinsChannelType Pins); # 166 "../../../mcal/Dio_ZX_K14xM/Inc\\Gpio_Drv.h" void Gpio_Drv_ClearPins(const uint32 Base, Gpio_Drv_PinsChannelType Pins); # 1 "../../../mcal/Base_ZX_K14xM/Inc/MemMap\\Dio_MemMap.h" 1 # 1088 "../../../mcal/Base_ZX_K14xM/Inc/MemMap\\Dio_MemMap.h" #pragma clang section text = "" # 170 "../../../mcal/Dio_ZX_K14xM/Inc\\Gpio_Drv.h" 2 # 28 "../../../mcal/Dio_ZX_K14xM/Src/Dio_Drvw.c" 2 # 91 "../../../mcal/Dio_ZX_K14xM/Src/Dio_Drvw.c" # 1 "../../../mcal/Base_ZX_K14xM/Inc/MemMap\\Dio_MemMap.h" 1 # 1212 "../../../mcal/Base_ZX_K14xM/Inc/MemMap\\Dio_MemMap.h" #pragma clang section data = ".mcal_data" # 92 "../../../mcal/Dio_ZX_K14xM/Src/Dio_Drvw.c" 2 # 1 "../../../mcal/Base_ZX_K14xM/Inc/MemMap\\Dio_MemMap.h" 1 # 1228 "../../../mcal/Base_ZX_K14xM/Inc/MemMap\\Dio_MemMap.h" #pragma clang section data = "" # 95 "../../../mcal/Dio_ZX_K14xM/Src/Dio_Drvw.c" 2 # 1 "../../../mcal/Base_ZX_K14xM/Inc/MemMap\\Dio_MemMap.h" 1 # 1072 "../../../mcal/Base_ZX_K14xM/Inc/MemMap\\Dio_MemMap.h" #pragma clang section text = ".mcal_code" # 99 "../../../mcal/Dio_ZX_K14xM/Src/Dio_Drvw.c" 2 # 111 "../../../mcal/Dio_ZX_K14xM/Src/Dio_Drvw.c" Dio_Drvw_LevelType Dio_Drvw_ReadChannel(Dio_Drvw_ChannelType ChannelId) { Dio_Drvw_LevelType ChannelLevel = (Dio_Drvw_LevelType)0x00U; uint32 Instance; uint32 PinIndex; Instance = ((uint32)((uint32)(ChannelId) >> ((uint8)5U))); PinIndex = ((uint32)((uint32)(ChannelId)&((uint32)0x1FU))); ChannelLevel = Gpio_Drv_ReadPin(Instance, PinIndex); return ChannelLevel; } # 132 "../../../mcal/Dio_ZX_K14xM/Src/Dio_Drvw.c" void Dio_Drvw_WriteChannel(Dio_Drvw_ChannelType ChannelId, Dio_Drvw_LevelType Level) { uint32 Instance; uint32 PinIndex; Instance = ((uint32)((uint32)(ChannelId) >> ((uint8)5U))); PinIndex = ((uint32)((uint32)(ChannelId)&((uint32)0x1FU))); Gpio_Drv_WritePin(Instance, PinIndex, Level); } # 155 "../../../mcal/Dio_ZX_K14xM/Src/Dio_Drvw.c" Dio_Drvw_LevelType Dio_Drvw_FlipChannel(Dio_Drvw_ChannelType ChannelId) { Dio_Drvw_LevelType ChannelLevel = (Dio_Drvw_LevelType)0x00U; uint32 Instance; uint32 PinIndex; uint32 PinId; uint32 PortOutPutLevel; Instance = ((uint32)((uint32)(ChannelId) >> ((uint8)5U))); PinIndex = ((uint32)((uint32)(ChannelId)&((uint32)0x1FU))); PinId = (uint32)1U << PinIndex; Gpio_Drv_TogglePins(Instance, PinId); PortOutPutLevel = Gpio_Drv_GetPinsOutput(Instance); PortOutPutLevel &= PinId; ChannelLevel = (Dio_Drvw_LevelType)(PortOutPutLevel >> PinIndex); return ChannelLevel; } # 186 "../../../mcal/Dio_ZX_K14xM/Src/Dio_Drvw.c" Dio_Drvw_PortLevelType Dio_Drvw_ReadPort(Dio_Drvw_PortType PortId) { Dio_Drvw_PortLevelType PortLevel = (Dio_Drvw_PortLevelType)0x00U; PortLevel = (Dio_Drvw_PortLevelType)(Gpio_Drv_ReadPins(PortId)); return PortLevel; } # 202 "../../../mcal/Dio_ZX_K14xM/Src/Dio_Drvw.c" void Dio_Drvw_WritePort(Dio_Drvw_PortType PortId, Dio_Drvw_PortLevelType Level) { Gpio_Drv_WritePort(PortId, Level); } # 215 "../../../mcal/Dio_ZX_K14xM/Src/Dio_Drvw.c" Dio_Drvw_PortLevelType Dio_Drvw_ReadChannelGroup(const Dio_Drvw_ChannelGroupType *ChannelGroupIdPtr) { Dio_Drvw_PortLevelType PortLevel = (Dio_Drvw_PortLevelType)0x00U; Dio_Drvw_PortLevelType PinsValue; Dio_Drvw_PortType Port; Port = ChannelGroupIdPtr->PortId; PinsValue = (Dio_Drvw_PortLevelType)(Gpio_Drv_ReadPins(Port)); PinsValue &= (ChannelGroupIdPtr->GroupMask); PortLevel = (Dio_Drvw_PortLevelType)(PinsValue >> (ChannelGroupIdPtr->BitOffset)); return PortLevel; } # 237 "../../../mcal/Dio_ZX_K14xM/Src/Dio_Drvw.c" void Dio_Drvw_WriteChannelGroup(const Dio_Drvw_ChannelGroupType *ChannelGroupIdPtr, Dio_Drvw_PortLevelType Level) { Dio_Drvw_PortLevelType ValueSet; Dio_Drvw_PortLevelType ValueClear; Dio_Drvw_PortType Port; Port = ChannelGroupIdPtr->PortId; ValueSet = ((Dio_Drvw_PortLevelType)(Level) << (ChannelGroupIdPtr->BitOffset)); ValueSet &= ((Dio_Drvw_PortLevelType)(ChannelGroupIdPtr->GroupMask)); Gpio_Drv_SetPins(Port, ValueSet); ValueClear = (~ValueSet) & ChannelGroupIdPtr->GroupMask; Gpio_Drv_ClearPins(Port, ValueClear); } # 265 "../../../mcal/Dio_ZX_K14xM/Src/Dio_Drvw.c" void Dio_Drvw_MaskedWritePort(Dio_Drvw_PortType PortId, Dio_Drvw_PortLevelType Level, Dio_Drvw_PortLevelType Mask) { Dio_Drvw_PortLevelType Value; Value = ((uint32)Mask) & ((uint32)(Level)); Gpio_Drv_SetPins(PortId, Value); Value = (~Level) & Mask; Gpio_Drv_ClearPins(PortId, Value); } # 1 "../../../mcal/Base_ZX_K14xM/Inc/MemMap\\Dio_MemMap.h" 1 # 1088 "../../../mcal/Base_ZX_K14xM/Inc/MemMap\\Dio_MemMap.h" #pragma clang section text = "" # 280 "../../../mcal/Dio_ZX_K14xM/Src/Dio_Drvw.c" 2