Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enable independent watchdog #1414

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions board/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ void tick_handler(void) {
// tick drivers at 8Hz
fan_tick();
usb_tick();
watchdog_feed();
simple_watchdog_kick();

// decimated to 1Hz
Expand Down Expand Up @@ -375,6 +376,7 @@ int main(void) {
current_board->enable_can_transceivers(true);

// init watchdog for heartbeat loop, fed at 8Hz
watchdog_init(WATCHDOG_500_MS);
simple_watchdog_init(FAULT_HEARTBEAT_LOOP_WATCHDOG, (3U * 1000000U / 8U));

// 8Hz timer
Expand Down