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

Subversion Repositories neorv32

[/] [neorv32/] [trunk/] [sw/] [example/] [demo_twi/] [main.c] - Diff between revs 12 and 14

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 12 Rev 14
Line 38... Line 38...
 * @author Stephan Nolting
 * @author Stephan Nolting
 * @brief TWI bus explorer.
 * @brief TWI bus explorer.
 **************************************************************************/
 **************************************************************************/
 
 
#include <neorv32.h>
#include <neorv32.h>
 
#include <string.h>
 
 
 
 
/**********************************************************************//**
/**********************************************************************//**
 * @name User configuration
 * @name User configuration
 **************************************************************************/
 **************************************************************************/
Line 77... Line 78...
  }
  }
 
 
 
 
  // capture all exceptions and give debug info via UART
  // capture all exceptions and give debug info via UART
  // this is not required, but keeps us safe
  // this is not required, but keeps us safe
  neorv32_rte_enable_debug_mode();
  neorv32_rte_setup();
 
 
 
 
  // init UART at default baud rate, no rx interrupt, no tx interrupt
  // init UART at default baud rate, no rx interrupt, no tx interrupt
  neorv32_uart_setup(BAUD_RATE, 0, 0);
  neorv32_uart_setup(BAUD_RATE, 0, 0);
 
 

powered by: WebSVN 2.1.0

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