NEORV32 Software Framework Documentation
The NEORV32 RISC-V Processor
Loading...
Searching...
No Matches
main.c File Reference

Watchdog demo program. More...

#include <neorv32.h>

Macros

User configuration
#define BAUD_RATE   19200
 
#define WDT_TIMEOUT_S   8
 

Functions

void delay_ms (uint32_t time_ms)
 
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   8

WDT timeout (until system reset) in seconds

Function Documentation

◆ delay_ms()

void delay_ms ( uint32_t time_ms)

Simple bus-wait helper.

Parameters
[in]time_msTime in ms to wait (unsigned 32-bit).

◆ main()

int main ( void )

Main function

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