#include "main.h" #ifdef GCC #pragma GCC diagnostic ignored "-Wext" #endif #ifdef __ghs__ #pragma ghs nowarning 14 #undef EN_CMBTRACE #define EN_CMBTRACE 0 #endif #include "EcuM.h" #include "func.h" #include "can_func.h" #include "spi_func.h" #include "cm_backtrace.h" #if EN_SEGGER #include #include #include #endif //int mouting_side __attribute__((section(".VAR_MOUNTING_SIDE"))); //int mouting_side_inv __attribute__((section(".VAR_MOUNTING_SIDE_INV"))); void Watchdog_Disable(void) { } void DelayMS(void) { int speed1 = 1000; int Delay1 = 1000; while (Delay1--) { int Delay2 = speed1; while (Delay2--) { MCALLIB_NOP(); } } } int main(void) { #if (EN_SYSTEMVIEW==1) systemview_trace_init(); #endif InitCmbackTrace(); EcuM_Init(); } void FOSCClkLossCallbackFunc(void) { } void WdgBefRefreshCallBackPtr (void) { } void WdgAftRefreshCallBackPtr (void) { } void Wdg_CallbackForGptNotification (void) { } /* void McalLib_Assert(const uint8 *File, uint32 Line) { //printf("File %s Line %d error ",File,Line); } */