MCU
Loading...
Searching...
No Matches
Watchdog_interface_test.h
Go to the documentation of this file.
1#include <Arduino.h>
2#include <unity.h>
3
4#include "WatchdogInterface.h"
5
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 test_watchdog_kick()
void init(unsigned long curr_millis)
void kick_watchdog(unsigned long curr_millis)
WatchdogInterface wd_interface(WATCHDOG_INPUT)