URL
https://opencores.org/ocsvn/neorv32/neorv32/trunk
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;
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.