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

Subversion Repositories neorv32

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

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

Rev 2 Rev 12
Line 183... Line 183...
    neorv32_uart_printf("\nInvalid selection!\n");
    neorv32_uart_printf("\nInvalid selection!\n");
    return;
    return;
  }
  }
 
 
  // print new clock frequency
  // print new clock frequency
  uint32_t clock = neorv32_cpu_csr_read(CSR_MCLOCK);
  uint32_t clock = SYSINFO_CLK;
  switch (prsc) {
  switch (prsc) {
    case 0: clock = clock / 2; break;
    case 0: clock = clock / 2; break;
    case 1: clock = clock / 4; break;
    case 1: clock = clock / 4; break;
    case 2: clock = clock / 8; break;
    case 2: clock = clock / 8; break;
    case 3: clock = clock / 64; break;
    case 3: clock = clock / 64; break;

powered by: WebSVN 2.1.0

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