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

Minimal blinking LED demo program using the lowest 8 bits of the GPIO.output port. More...

#include <neorv32.h>

Functions

void delay_ms (uint32_t time_ms)
 
int main ()
 

Detailed Description

Minimal blinking LED demo program using the lowest 8 bits of the GPIO.output port.

Author
Stephan Nolting

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; shows an incrementing 8-bit counter on GPIO.output(7:0).

Note
This program requires the GPIO controller to be synthesized.
Returns
Will never return.