2.1.1.3 Functions

  • static void configure_TMR0 (void)

    Sets the period so that Timer0 (TMR0) overflows approximately every 1 ms.

  • static void restart_TMR0 (void)

    Resets TMR0 to zero and starts counting from zero.

  • void DIAG_WDT_Startup (void)

    Tests the WDT, protects against runaway code, deadlocks and the program counter not working.

  • diag_result_t DIAG_WDT_GetResult (void)

    Returns the status of the WDT diagnosis.