This function reads the application CRC value from flash memory for later comparison and activates the watchdog.
Definition at line 99 of file safety.c. References fan_Set(), mg_u16MemIdx, mg_u32ApplCRC, mg_u32CalcCRC, and OFF. Referenced by init_InitModules(). { fan_Set(OFF); mg_u16MemIdx = 0U; mg_u32CalcCRC = 0xFFFFFFFFUL; /* read CRC */ mg_u32ApplCRC = pgm_read_word(MEMPOS_CRC+2U); mg_u32ApplCRC <<= 16U; mg_u32ApplCRC += pgm_read_word(MEMPOS_CRC); /* activate watchdog */ wdt_enable(WDTO_500MS); wdt_reset(); }
Here is the call graph for this function:
![]()
Here is the caller graph for this function:
![]() |