# 1 "../Generated/Src/Spi_Drv_PBcfg.c" # 1 "" 1 # 1 "" 3 # 387 "" 3 # 1 "" 1 # 1 "" 2 # 1 "../Generated/Src/Spi_Drv_PBcfg.c" 2 # 27 "../Generated/Src/Spi_Drv_PBcfg.c" # 1 "../../../mcal/Spi_ZX_K14xM/Inc\\Spi_Drv.h" 1 # 28 "../../../mcal/Spi_ZX_K14xM/Inc\\Spi_Drv.h" # 1 "../../../mcal/Spi_ZX_K14xM/Inc/Spi_Drv_Types.h" 1 # 28 "../../../mcal/Spi_ZX_K14xM/Inc/Spi_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/Spi_ZX_K14xM/Inc/Spi_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/Spi_ZX_K14xM/Inc/Spi_Drv_Types.h" 2 # 1 "../Generated/inc\\Spi_Drv_Cfg.h" 1 # 28 "../Generated/inc\\Spi_Drv_Cfg.h" # 1 "../Generated/inc/Spi_Drv_PBcfg.h" 1 # 29 "../Generated/inc\\Spi_Drv_Cfg.h" 2 # 31 "../../../mcal/Spi_ZX_K14xM/Inc/Spi_Drv_Types.h" 2 # 84 "../../../mcal/Spi_ZX_K14xM/Inc/Spi_Drv_Types.h" typedef enum { SPI_DRV_EVENT_SUCCESS = 0U, SPI_DRV_EVENT_FAULT } Spi_Drv_EventType; typedef void (*Spi_Drv_CallbackType)(uint8 Instance, Spi_Drv_EventType Event); typedef enum { SPI_DRV_POLLING = 0U, SPI_DRV_INTERRUPT } Spi_Drv_AsyncModeType; typedef enum { SPI_DRV_UNINIT = 0U, SPI_DRV_IDLE, SPI_DRV_BUSY, SPI_DRV_FAULT } Spi_Drv_StatusType; typedef struct { uint8 FrameSize; boolean Lsb; uint32 DefaultData; } Spi_Drv_DeviceParamType; typedef struct { uint8 Instance; uint8 CsIdentifier; uint8 ClockPhase; uint8 ClockPolarity; uint32 ClockDivider; Spi_Drv_DeviceParamType *DeviceParamPtr; } Spi_Drv_ExternalDeviceType; typedef struct { uint8 Instance; boolean DmaUsed; uint8 TxDmaChannel; uint8 RxDmaChannel; Spi_Drv_AsyncModeType AsyncMode; } Spi_Drv_PhyUnitConfigType; typedef struct { Spi_Drv_AsyncModeType AsyncMode; Spi_Drv_StatusType Status; uint8 *RxBuffer; uint8 *TxBuffer; Spi_Drv_CallbackType Callback; uint16 RxIndex; uint16 TxIndex; uint16 ExpectReadNum; uint16 ExpectWriteNum; boolean ContinueTransferFlag; boolean FirstTransferFlag; const Spi_Drv_PhyUnitConfigType *PhyUnitConfig; const Spi_Drv_ExternalDeviceType *ExternalDevice; uint8 FrameSize; boolean TxLsb; boolean NextTransferConfigAvailable; uint8 CurrentTxFifoSlot; boolean TxDoneFlag; } Spi_Drv_TransferConfigType; # 29 "../../../mcal/Spi_ZX_K14xM/Inc\\Spi_Drv.h" 2 # 71 "../../../mcal/Spi_ZX_K14xM/Inc\\Spi_Drv.h" # 1 "../../../mcal/Base_ZX_K14xM/Inc/MemMap\\Spi_MemMap.h" 1 # 1436 "../../../mcal/Base_ZX_K14xM/Inc/MemMap\\Spi_MemMap.h" #pragma clang section bss = ".mcal_bss" # 72 "../../../mcal/Spi_ZX_K14xM/Inc\\Spi_Drv.h" 2 extern Spi_Drv_DeviceParamType Spi_Drv_DeviceParamArray[(4U)]; # 1 "../../../mcal/Base_ZX_K14xM/Inc/MemMap\\Spi_MemMap.h" 1 # 1452 "../../../mcal/Base_ZX_K14xM/Inc/MemMap\\Spi_MemMap.h" #pragma clang section bss = "" # 77 "../../../mcal/Spi_ZX_K14xM/Inc\\Spi_Drv.h" 2 # 1 "../../../mcal/Base_ZX_K14xM/Inc/MemMap\\Spi_MemMap.h" 1 # 876 "../../../mcal/Base_ZX_K14xM/Inc/MemMap\\Spi_MemMap.h" #pragma clang section rodata = ".mcal_config_data" # 80 "../../../mcal/Spi_ZX_K14xM/Inc\\Spi_Drv.h" 2 extern const Spi_Drv_ExternalDeviceType Spi_Drv_ExternalDeviceConfig_SpiExDev_Stp; extern const Spi_Drv_ExternalDeviceType Spi_Drv_ExternalDeviceConfig_SpiExDev_Sbc; extern const Spi_Drv_ExternalDeviceType Spi_Drv_ExternalDeviceConfig_SpiExDev_Buck; extern const Spi_Drv_ExternalDeviceType Spi_Drv_ExternalDeviceConfig_SpiExDev_Boost; extern const Spi_Drv_PhyUnitConfigType Spi_Drv_PhyUnitConfig_SpiPhy0; extern const Spi_Drv_PhyUnitConfigType Spi_Drv_PhyUnitConfig_SpiPhy1; # 1 "../../../mcal/Base_ZX_K14xM/Inc/MemMap\\Spi_MemMap.h" 1 # 892 "../../../mcal/Base_ZX_K14xM/Inc/MemMap\\Spi_MemMap.h" #pragma clang section rodata = "" # 87 "../../../mcal/Spi_ZX_K14xM/Inc\\Spi_Drv.h" 2 # 1 "../../../mcal/Base_ZX_K14xM/Inc/MemMap\\Spi_MemMap.h" 1 # 1072 "../../../mcal/Base_ZX_K14xM/Inc/MemMap\\Spi_MemMap.h" #pragma clang section text = ".mcal_code" # 96 "../../../mcal/Spi_ZX_K14xM/Inc\\Spi_Drv.h" 2 # 106 "../../../mcal/Spi_ZX_K14xM/Inc\\Spi_Drv.h" Std_ReturnType Spi_Drv_Init(const Spi_Drv_PhyUnitConfigType *PhyUnitConfigPtr); # 118 "../../../mcal/Spi_ZX_K14xM/Inc\\Spi_Drv.h" Std_ReturnType Spi_Drv_DeInit(uint8 Instance); # 132 "../../../mcal/Spi_ZX_K14xM/Inc\\Spi_Drv.h" Std_ReturnType Spi_Drv_SetDeviceParams(const Spi_Drv_ExternalDeviceType *DevicePtr, uint8 FrameSize, boolean Lsb, uint32 DefaultData); # 148 "../../../mcal/Spi_ZX_K14xM/Inc\\Spi_Drv.h" Std_ReturnType Spi_Drv_SyncTransmit(const Spi_Drv_ExternalDeviceType *ExternalDevice, uint8 *TxBuffer, uint8 *RxBuffer, uint16 Length, uint32 TimeOut); # 165 "../../../mcal/Spi_ZX_K14xM/Inc\\Spi_Drv.h" Std_ReturnType Spi_Drv_AsyncTransmit(const Spi_Drv_ExternalDeviceType *ExternalDevice, uint8 *TxBuffer, uint8 *RxBuffer, uint16 Length, Spi_Drv_CallbackType EndCallback); # 176 "../../../mcal/Spi_ZX_K14xM/Inc\\Spi_Drv.h" void Spi_Drv_PollAsyncTransmit(uint8 Instance); # 188 "../../../mcal/Spi_ZX_K14xM/Inc\\Spi_Drv.h" Std_ReturnType Spi_Drv_SetAsyncMode(uint8 Instance, Spi_Drv_AsyncModeType Mode); # 197 "../../../mcal/Spi_ZX_K14xM/Inc\\Spi_Drv.h" void Spi_Drv_Cancel(uint8 Instance); # 210 "../../../mcal/Spi_ZX_K14xM/Inc\\Spi_Drv.h" Spi_Drv_StatusType Spi_Drv_GetStatus(uint8 Instance); # 219 "../../../mcal/Spi_ZX_K14xM/Inc\\Spi_Drv.h" void Spi_Drv_IntHandler(uint8 Instance); # 228 "../../../mcal/Spi_ZX_K14xM/Inc\\Spi_Drv.h" void Spi_Drv_DmaTxIntHandler(uint8 Instance); void Spi_Drv_DmaRxIntHandler(uint8 Instance); # 1 "../../../mcal/Base_ZX_K14xM/Inc/MemMap\\Spi_MemMap.h" 1 # 1088 "../../../mcal/Base_ZX_K14xM/Inc/MemMap\\Spi_MemMap.h" #pragma clang section text = "" # 241 "../../../mcal/Spi_ZX_K14xM/Inc\\Spi_Drv.h" 2 # 28 "../Generated/Src/Spi_Drv_PBcfg.c" 2 # 75 "../Generated/Src/Spi_Drv_PBcfg.c" # 1 "../../../mcal/Base_ZX_K14xM/Inc/MemMap\\Spi_MemMap.h" 1 # 876 "../../../mcal/Base_ZX_K14xM/Inc/MemMap\\Spi_MemMap.h" #pragma clang section rodata = ".mcal_config_data" # 76 "../Generated/Src/Spi_Drv_PBcfg.c" 2 const Spi_Drv_ExternalDeviceType Spi_Drv_ExternalDeviceConfig_SpiExDev_Stp = { 0U, 1U, 1U, 0U, (uint32)80U, &Spi_Drv_DeviceParamArray[0U] }; const Spi_Drv_ExternalDeviceType Spi_Drv_ExternalDeviceConfig_SpiExDev_Sbc = { 0U, 2U, 1U, 0U, (uint32)80U, &Spi_Drv_DeviceParamArray[1U] }; const Spi_Drv_ExternalDeviceType Spi_Drv_ExternalDeviceConfig_SpiExDev_Buck = { 1U, 1U, 0U, 0U, (uint32)40U, &Spi_Drv_DeviceParamArray[2U] }; const Spi_Drv_ExternalDeviceType Spi_Drv_ExternalDeviceConfig_SpiExDev_Boost = { 1U, 2U, 1U, 0U, (uint32)80U, &Spi_Drv_DeviceParamArray[3U] }; const Spi_Drv_PhyUnitConfigType Spi_Drv_PhyUnitConfig_SpiPhy0 = { 0U, (boolean)0U, (uint8)0U, (uint8)0U, SPI_DRV_POLLING }; const Spi_Drv_PhyUnitConfigType Spi_Drv_PhyUnitConfig_SpiPhy1 = { 1U, (boolean)1U, (uint8)2, (uint8)4, SPI_DRV_POLLING }; # 1 "../../../mcal/Base_ZX_K14xM/Inc/MemMap\\Spi_MemMap.h" 1 # 892 "../../../mcal/Base_ZX_K14xM/Inc/MemMap\\Spi_MemMap.h" #pragma clang section rodata = "" # 170 "../Generated/Src/Spi_Drv_PBcfg.c" 2