/** * First callout from EcuM_Init(). May contain * all kind of initialization code. * * Got here by main()->EcuM_Init() * * Part of STARTUP I */ void EcuM_AL_DriverInitZero(void) { // VALIDATE_STATE( ECUM_STATE_STARTUP_ONE ); #if defined(USE_DET) Det_Init(); /** @req EcuM2783 */ /** @req EcuMf2783 */ Det_Start(); /** @req EcuM2634 *//** @req EcuMf2634 */ #endif }
/** * First callout from EcuM_Init(). May contain * all kind of initialization code. * * Got here by main()->EcuM_Init() * * Part of STARTUP I */ void EcuM_AL_DriverInitZero(void) { // VALIDATE_STATE( ECUM_STATE_STARTUP_ONE ); #if defined(USE_USB) usb_heap_init(); mailboxInit(); usb_sem_init(); #endif #if defined(USE_DET) Det_Init();/** @req EcuM2783 */ Det_Start();/** @req EcuM2634 */ #endif }
void EcuM_Callout_DriverInitListOne(void) { Det_Init(); Dem_PreInit(); Mcu_Init(&McuModuleConfiguration_0); Mcu_AdditionalInit(); Mcl_Init(NULL_PTR); Port_Init(NULL_PTR); Adc_Init(NULL_PTR); Dio_Init(NULL_PTR); Gpt_Init(NULL_PTR); Pwm_Init(NULL_PTR); Icu_Init(NULL_PTR); Spi_Init(NULL_PTR); SpiCtrl_Init(); SwGpt_Init(); pIcomInstBle = ICOM_Create(); ICOMChannelStatus_Init(pIcomInstBle); ICOMChannelDiag_Init(pIcomInstBle); ExtFlashSpiCtrlInit(SpiConf_SpiChannel_Spi_NVM_Command,\ SpiConf_SpiSequence_Spi_Seq_NVM,\ SpiConf_SpiJob_Spi_Job_NVM); CC254xCDD_Init(pIcomInstBle, DioConf_DioChannel_B6_SPI_SRDY_CU_LPCPU,\ SpiConf_SpiChannel_Spi_TICC2540_Command_8,\ SpiConf_SpiSequence_Spi_Seq_Ble_Exchange); /* ******************************************************************* * Wdg must be the latest in the initialization sequence * otherwise the function call Spi_SetAsyncMode(SPI_INTERRUPT_MODE) * returns a negative response when initializing the CC254xCDD_Init *********************************************************************/ Wdg_Init(NULL_PTR); WdgM_Init(NULL_PTR); WdgM_SetMode(1U,0U); }