ASCII Serial Com
Serial communication library between computers, microcontrollers, FPGAs, etc. Uses only ASCII. Not the most efficient protocol, but meant to be easy to read
Loading...
Searching...
No Matches
Functions
neorv32_blink_led.c File Reference

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

#include <neorv32.h>
Include dependency graph for neorv32_blink_led.c:

Go to the source code of this file.

Macros

User configuration

#define BAUD_RATE   19200
 

Functions

void blink_led_c (void)
 
int main ()
 

Detailed Description

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

blink_led/main.c

Author
Stephan Nolting

Definition in file neorv32_blink_led.c.

Macro Definition Documentation

◆ BAUD_RATE

#define BAUD_RATE   19200

UART BAUD rate

Definition at line 66 of file neorv32_blink_led.c.

Referenced by main().

Function Documentation

◆ blink_led_c()

void blink_led_c ( void )

C function to blink LEDs

C-version of blinky LED counter

Definition at line 140 of file neorv32_blink_led.c.

Referenced by main().

◆ 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 (the UART is optional).
Returns
0 if execution was successful

Definition at line 109 of file neorv32_blink_led.c.

References BAUD_RATE, and blink_led_c().