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

Simple GPTMR timer-match interrupt example. More...

#include <neorv32.h>

Macros

User configuration
#define BAUD_RATE   19200
 

Functions

void gptmr_firq_handler (void)
 
int main ()
 

Detailed Description

Simple GPTMR timer-match interrupt example.

Author
Stephan Nolting

Macro Definition Documentation

◆ BAUD_RATE

#define BAUD_RATE   19200

UART BAUD rate

Function Documentation

◆ gptmr_firq_handler()

void gptmr_firq_handler ( void )

GPTMR FIRQ handler.

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

◆ main()

int main ( void )

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

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