[sw/example/*] added UART hardware flow control parameter to UART setup functions

* added define to ease parity configuration
This commit is contained in:
stnolting 2021-02-22 19:16:21 +01:00
parent a6c80778b9
commit 0a00f6a5e0
14 changed files with 30 additions and 30 deletions

View file

@ -75,8 +75,8 @@ int main() {
// capture all exceptions and give debug info via UART
neorv32_rte_setup();
// init UART at default baud rate, no parity bits
neorv32_uart_setup(BAUD_RATE, 0b00);
// init UART at default baud rate, no parity bits, ho hw flow control
neorv32_uart_setup(BAUD_RATE, PARITY_NONE, FLOW_CONTROL_NONE);
// intro
neorv32_uart_printf("NEORV32 Bit Manipulation (B.Zbb) Extension Test\n\n");

View file

@ -73,8 +73,8 @@ void blink_led_c(void);
**************************************************************************/
int main() {
// init UART (primary UART = UART0; if no id number is specified the primary UART is used) at default baud rate, no parity bits
neorv32_uart_setup(BAUD_RATE, 0b00);
// init UART (primary UART = UART0; if no id number is specified the primary UART is used) at default baud rate, no parity bits, ho hw flow control
neorv32_uart_setup(BAUD_RATE, PARITY_NONE, FLOW_CONTROL_NONE);
// check if GPIO unit is implemented at all
if (neorv32_gpio_available() == 0) {

View file

@ -150,8 +150,8 @@ portable_init(core_portable *p, int *argc, char *argv[])
{
/* NEORV32-specific */
neorv32_cpu_dint(); // no interrupt, thanks
neorv32_rte_setup(); // capture all exceptions and give debug information
neorv32_uart_setup(BAUD_RATE, 0b00); // init UART at default baud rate, no parity bits
neorv32_rte_setup(); // capture all exceptions and give debug information, ho hw flow control
neorv32_uart_setup(BAUD_RATE, PARITY_NONE, FLOW_CONTROL_NONE);
// Disable coremark compilation by default

View file

@ -111,8 +111,8 @@ int main() {
uint32_t is_simulation = 0;
// init UART at default baud rate, no parity bits
neorv32_uart_setup(BAUD_RATE, 0b00);
// init UART at default baud rate, no parity bits, ho hw flow control
neorv32_uart_setup(BAUD_RATE, PARITY_NONE, FLOW_CONTROL_NONE);
// Disable cpu_test compilation by default
#ifndef RUN_CPUTEST

View file

@ -127,8 +127,8 @@ static void prvSetupHardware( void )
// clear GPIO.out port
neorv32_gpio_port_set(0);
// init UART at default baud rate, no parity bits
neorv32_uart_setup(BAUD_RATE, 0b00);
// init UART at default baud rate, no parity bits, ho hw flow control
neorv32_uart_setup(BAUD_RATE, PARITY_NONE, FLOW_CONTROL_NONE);
// check available hardware extensions and compare with compiler flags
neorv32_rte_check_isa(0); // silent = 0 -> show message if isa mismatch
@ -231,8 +231,8 @@ void SystemIrqHandler( uint32_t mcause )
#include <neorv32.h>
int main() {
// init UART at default baud rate, no parity bits
neorv32_uart_setup(BAUD_RATE, 0b00);
// init UART at default baud rate, no parity bits, ho hw flow control
neorv32_uart_setup(BAUD_RATE, PARITY_NONE, FLOW_CONTROL_NONE);
neorv32_uart_print("ERROR! FreeRTOS has not been compiled. Use >>make USER_FLAGS+=-DRUN_FREERTOS_DEMO clean_all exe<< to compile it.\n");
return 0;
}

View file

@ -72,8 +72,8 @@ int main() {
// setup run-time environment for interrupts and exceptions
neorv32_rte_setup();
// init UART at default baud rate, no parity bits
neorv32_uart_setup(BAUD_RATE, 0b00);
// init UART at default baud rate, no parity bits, ho hw flow control
neorv32_uart_setup(BAUD_RATE, PARITY_NONE, FLOW_CONTROL_NONE);
// check available hardware extensions and compare with compiler flags
neorv32_rte_check_isa(0); // silent = 0 -> show message if isa mismatch

View file

@ -73,8 +73,8 @@ int main() {
// setup run-time environment for interrupts and exceptions
neorv32_rte_setup();
// init UART at default baud rate, no parity bits
neorv32_uart_setup(BAUD_RATE, 0b00);
// init UART at default baud rate, no parity bits, ho hw flow control
neorv32_uart_setup(BAUD_RATE, PARITY_NONE, FLOW_CONTROL_NONE);
// check available hardware extensions and compare with compiler flags
neorv32_rte_check_isa(0); // silent = 0 -> show message if isa mismatch

View file

@ -73,8 +73,8 @@ int main() {
neorv32_rte_setup();
// init UART at default baud rate, no parity bits
neorv32_uart_setup(BAUD_RATE, 0b00);
// init UART at default baud rate, no parity bits, ho hw flow control
neorv32_uart_setup(BAUD_RATE, PARITY_NONE, FLOW_CONTROL_NONE);
// check available hardware extensions and compare with compiler flags
neorv32_rte_check_isa(0); // silent = 0 -> show message if isa mismatch

View file

@ -75,8 +75,8 @@ int main(void) {
neorv32_rte_setup();
// init UART at default baud rate, no parity bits
neorv32_uart_setup(BAUD_RATE, 0b00);
// init UART at default baud rate, no parity bits, ho hw flow control
neorv32_uart_setup(BAUD_RATE, PARITY_NONE, FLOW_CONTROL_NONE);
// check available hardware extensions and compare with compiler flags
neorv32_rte_check_isa(0); // silent = 0 -> show message if isa mismatch

View file

@ -83,8 +83,8 @@ int main() {
neorv32_rte_setup();
// init UART at default baud rate, no parity bits
neorv32_uart_setup(BAUD_RATE, 0b00);
// init UART at default baud rate, no parity bits, ho hw flow control
neorv32_uart_setup(BAUD_RATE, PARITY_NONE, FLOW_CONTROL_NONE);
// check available hardware extensions and compare with compiler flags
neorv32_rte_check_isa(0); // silent = 0 -> show message if isa mismatch

View file

@ -75,8 +75,8 @@ int main() {
// this is not required, but keeps us safe
neorv32_rte_setup();
// init UART at default baud rate, no parity bits
neorv32_uart_setup(BAUD_RATE, 0b00);
// init UART at default baud rate, no parity bits, ho hw flow control
neorv32_uart_setup(BAUD_RATE, PARITY_NONE, FLOW_CONTROL_NONE);
// check available hardware extensions and compare with compiler flags
neorv32_rte_check_isa(0); // silent = 0 -> show message if isa mismatch

View file

@ -97,8 +97,8 @@ int main(void) {
neorv32_rte_setup();
// init UART at default baud rate, no parity bits
neorv32_uart_setup(BAUD_RATE, 0b00);
// init UART at default baud rate, no parity bits, ho hw flow control
neorv32_uart_setup(BAUD_RATE, PARITY_NONE, FLOW_CONTROL_NONE);
// check available hardware extensions and compare with compiler flags
neorv32_rte_check_isa(0); // silent = 0 -> show message if isa mismatch

View file

@ -65,8 +65,8 @@ int main() {
// this is not required, but keeps us safe
neorv32_rte_setup();
// init UART at default baud rate, no parity bits
neorv32_uart_setup(BAUD_RATE, 0b00);
// init UART at default baud rate, no parity bits, ho hw flow control
neorv32_uart_setup(BAUD_RATE, PARITY_NONE, FLOW_CONTROL_NONE);
// check available hardware extensions and compare with compiler flags
neorv32_rte_check_isa(0); // silent = 0 -> show message if isa mismatch

View file

@ -84,8 +84,8 @@ int main() {
// disable global interrupts
neorv32_cpu_dint();
// init UART at default baud rate, no parity bits
neorv32_uart_setup(BAUD_RATE, 0b00);
// init UART at default baud rate, no parity bits, ho hw flow control
neorv32_uart_setup(BAUD_RATE, PARITY_NONE, FLOW_CONTROL_NONE);
// check available hardware extensions and compare with compiler flags
neorv32_rte_check_isa(0); // silent = 0 -> show message if isa mismatch