OpenCores
URL https://opencores.org/ocsvn/neorv32/neorv32/trunk

Subversion Repositories neorv32

[/] [neorv32/] [trunk/] [sw/] [example/] [demo_neopixel/] [main.c] - Diff between revs 64 and 65

Show entire file | Details | Blame | View Log

Rev 64 Rev 65
Line 73... Line 73...
  // this is not required, but keeps us safe
  // this is not required, but keeps us safe
  neorv32_rte_setup();
  neorv32_rte_setup();
 
 
 
 
  // setup UART0 at default baud rate, no parity bits, no hw flow control
  // setup UART0 at default baud rate, no parity bits, no hw flow control
  neorv32_uart_setup(BAUD_RATE, PARITY_NONE, FLOW_CONTROL_NONE);
  neorv32_uart0_setup(BAUD_RATE, PARITY_NONE, FLOW_CONTROL_NONE);
 
 
 
 
  // check if NEOLED unit is implemented at all, abort if not
  // check if NEOLED unit is implemented at all, abort if not
  if (neorv32_neoled_available() == 0) {
  if (neorv32_neoled_available() == 0) {
    neorv32_uart_printf("Error! No NEOLED unit synthesized!\n");
    neorv32_uart0_printf("Error! No NEOLED unit synthesized!\n");
    return 1;
    return 1;
  }
  }
 
 
 
 
  // illustrate setup
  // illustrate setup

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.