#include #include #include #include #include #include #include #include void OsSchedulerStartupHook(void) { return; } void EcuM_Init(void) { // At this point, low-level initialization // has already been called from the startup code. // Already called from the startup code: // * Mcu_Init (), including Mcu_InitClock and Mcu_DistributePllClock // * Port_Init() is called from startup code. // * Wdg_Init () is called from startup code. HalIrqEnableAll(); Dio_Init(NULL_PTR); // Initialize a free-running counter counting up. // It should have 32-bit or 64-bit resolution running // at a frequency of 1MHz. The value of this counter // is to be returned from Gpt_GetTimeElapsed(). Gpt_Init(&Gpt_ConfigData); Adc_Init(NULL_PTR); Can_Init(NULL_PTR); }