NEORV32 - Software Framework Documentation
Functions
main.c File Reference

Simple machine timer (MTIME) usage example. More...

#include <neorv32.h>

Macros

User configuration
#define BAUD_RATE   19200
 

Functions

void mtime_irq_handler (void)
 
int main ()
 

Detailed Description

Simple machine timer (MTIME) usage example.

Author
Stephan Nolting

Macro Definition Documentation

◆ BAUD_RATE

#define BAUD_RATE   19200

UART BAUD rate

Function Documentation

◆ main()

int main ( void  )

This program blinks an LED at GPIO.output(0) at 1Hz using the machine timer interrupt.

Note
This program requires the MTIME unit to be synthesized (and UART0 and GPIO).
Returns
Should not return;

◆ mtime_irq_handler()

void mtime_irq_handler ( void  )

MTIME IRQ handler.

Warning
This function has to be of type "void xyz(void)" and must not use any interrupt attributes!