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

Subversion Repositories neorv32

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /neorv32/trunk/sw/lib/source
    from Rev 20 to Rev 22
    Reverse comparison

Rev 20 → Rev 22

/neorv32_rte.c
288,10 → 288,23
}
}
neorv32_uart_printf("(0x%x)\n", tmp);
// Z* CPU extensions (from custom CSR)
neorv32_uart_printf("Z* extensions: ");
tmp = neorv32_cpu_csr_read(CSR_MZEXT);
if (tmp & (1<<0)) {
neorv32_uart_printf("Zicsr ");
}
if (tmp & (1<<1)) {
neorv32_uart_printf("Zifencei ");
}
if (tmp & (1<<2)) {
neorv32_uart_printf("cpu_counters ");
}
 
 
// Misc
neorv32_uart_printf("\n-- System --\n");
neorv32_uart_printf("\n\n-- System --\n");
neorv32_uart_printf("Clock: %u Hz\n", SYSINFO_CLK);
 
 
411,3 → 424,46
"made in Hannover, Germany\n\n");
}
 
 
/**********************************************************************//**
* NEORV32 runtime environment: Print project license
**************************************************************************/
void neorv32_rte_print_license(void) {
 
neorv32_uart_print(
"\n"
"\n"
"BSD 3-Clause License\n"
"\n"
"Copyright (c) 2020, Stephan Nolting. All rights reserved.\n"
"\n"
"Redistribution and use in source and binary forms, with or without modification, are\n"
"permitted provided that the following conditions are met:\n"
"\n"
"1. Redistributions of source code must retain the above copyright notice, this list of\n"
" conditions and the following disclaimer.\n"
"\n"
"2. Redistributions in binary form must reproduce the above copyright notice, this list of\n"
" conditions and the following disclaimer in the documentation and/or other materials\n"
" provided with the distribution.\n"
"\n"
"3. Neither the name of the copyright holder nor the names of its contributors may be used to\n"
" endorse or promote products derived from this software without specific prior written\n"
" permission.\n"
"\n"
"THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND ANY EXPRESS\n"
"OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF\n"
"MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE\n"
"COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\n"
"EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE\n"
"GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED\n"
"AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\n"
"NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED\n"
"OF THE POSSIBILITY OF SUCH DAMAGE.\n"
"\n"
"The NEORV32 Processor - https://github.com/stnolting/neorv32 (c) Stephan Nolting\n"
"\n"
"\n"
);
}
 
/neorv32_uart.c
207,7 → 207,7
*
* @param[in] s Pointer to string.
**************************************************************************/
void neorv32_uart_print(char *s) {
void neorv32_uart_print(const char *s) {
 
char c = 0;
while ((c = *s++)) {
227,7 → 227,7
**************************************************************************/
static void __neorv32_uart_itoa(uint32_t x, char *res) {
 
static const char numbers[10] = "0123456789";
static const char numbers[] = "0123456789";
char buffer1[11];
uint16_t i, j;
 
267,7 → 267,7
**************************************************************************/
static void __neorv32_uart_tohex(uint32_t x, char *res) {
 
static const char symbols[16] = "0123456789abcdef";
static const char symbols[] = "0123456789abcdef";
 
int i;
for (i=0; i<8; i++) { // nibble by bibble
294,7 → 294,7
* <TR><TD>%x</TD><TD>32-bit number, printed as 8-char hexadecimal</TD></TR>
* </TABLE>
**************************************************************************/
void neorv32_uart_printf(char *format, ...) {
void neorv32_uart_printf(const char *format, ...) {
 
char c, string_buf[11];
int32_t n;

powered by: WebSVN 2.1.0

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