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
Macros | Functions | Variables
neorv32_char_loopback.c File Reference

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

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

Go to the source code of this file.

Macros

#define UART1_TX_BUFFER_FULL    ((NEORV32_UART1.CTRL & (1 << UART_CTRL_TX_FULL)) != 0)
 

User configuration

#define BAUD_RATE   19200
 

Functions

int main ()
 

Variables

char tmpChar
 
char loopbackChar
 
bool charReceived = false
 
int rx_status
 

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_char_loopback.c.

Macro Definition Documentation

◆ BAUD_RATE

#define BAUD_RATE   19200

UART BAUD rate

Definition at line 67 of file neorv32_char_loopback.c.

Referenced by main().

◆ UART1_TX_BUFFER_FULL

#define UART1_TX_BUFFER_FULL    ((NEORV32_UART1.CTRL & (1 << UART_CTRL_TX_FULL)) != 0)

Definition at line 70 of file neorv32_char_loopback.c.

Function Documentation

◆ 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_char_loopback.c.

References BAUD_RATE.

Variable Documentation

◆ charReceived

bool charReceived = false

Definition at line 75 of file neorv32_char_loopback.c.

◆ loopbackChar

char loopbackChar

Definition at line 74 of file neorv32_char_loopback.c.

◆ rx_status

int rx_status

Definition at line 76 of file neorv32_char_loopback.c.

◆ tmpChar

char tmpChar

Definition at line 73 of file neorv32_char_loopback.c.