MCU
Loading...
Searching...
No Matches
Functions
Watchdog_interface_test.h File Reference
#include <Arduino.h>
#include <unity.h>
#include "WatchdogInterface.h"
Include dependency graph for Watchdog_interface_test.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void test_watchdog_kick ()
 

Function Documentation

◆ test_watchdog_kick()

void test_watchdog_kick ( )

Definition at line 6 of file Watchdog_interface_test.h.

7{
8 // Hypothetical pin setup
10 wd_interface.init(millis());
11 TEST_ASSERT_EQUAL(HIGH, wd_interface.get_watchdog_state());
12 delay(5);
14 TEST_ASSERT_EQUAL(HIGH, wd_interface.get_watchdog_state());
15 delay(5);
17 TEST_ASSERT_EQUAL(LOW, wd_interface.get_watchdog_state());
18
19}
void init(unsigned long curr_millis)
void kick_watchdog(unsigned long curr_millis)
WatchdogInterface wd_interface(WATCHDOG_INPUT)