NEORV32 - Software Framework Documentation
Loading...
Searching...
No Matches
Functions
main.c File Reference

Watchdog demo program. More...

#include <neorv32.h>

Macros

User configuration
#define BAUD_RATE   19200
 
#define WDT_TIMEOUT_S   4
 

Functions

void wdt_firq_handler (void)
 
int main ()
 

Detailed Description

Watchdog demo program.

Author
Stephan Nolting

Macro Definition Documentation

◆ BAUD_RATE

#define BAUD_RATE   19200

UART BAUD rate

◆ WDT_TIMEOUT_S

#define WDT_TIMEOUT_S   4

WDT timeout (until system reset) in seconds

Function Documentation

◆ main()

int main ( void  )

Main function

Note
This program requires the WDT and UART0 to be synthesized.
Returns
0 if execution was successful

◆ wdt_firq_handler()

void wdt_firq_handler ( void  )

Watchdog FIRQ handler - executed when the WDT has reached half of the configured timeout interval.