NEORV32 Software Framework Documentation
The NEORV32 RISC-V Processor
|
General auxiliary functions source file. More...
#include <neorv32.h>
Functions | |
uint64_t | neorv32_aux_date2unixtime (date_t *date) |
void | neorv32_aux_unixtime2date (uint64_t unixtime, date_t *date) |
uint64_t | neorv32_aux_hexstr2uint64 (char *buffer, unsigned int length) |
uint32_t | neorv32_aux_xorshift32 (void) |
void | neorv32_aux_itoa (char *buffer, uint32_t num, uint32_t base) |
void | neorv32_aux_print_hw_config (void) |
void | neorv32_aux_print_hw_version (uint32_t impid) |
void | neorv32_aux_print_about (void) |
void | neorv32_aux_print_logo (void) |
void | neorv32_aux_print_license (void) |
General auxiliary functions source file.
uint64_t neorv32_aux_date2unixtime | ( | date_t * | date | ) |
Convert date to Unix time stamp.
[in] | date | Pointer to date and time struct (date_t). |
uint64_t neorv32_aux_hexstr2uint64 | ( | char * | buffer, |
unsigned int | length ) |
Helper function to convert up to 16 hex chars string into uint64_t
[in,out] | buffer | Pointer to array of chars to convert into number. |
[in] | length | Length of the conversion string. |
void neorv32_aux_itoa | ( | char * | buffer, |
uint32_t | num, | ||
uint32_t | base ) |
Simplified version of "itoa": convert number to string.
[in,out] | buffer | Pointer to array for the result string [33 chars]. |
[in] | num | Number to convert. |
[in] | base | Base of number representation (2..16). |
void neorv32_aux_print_about | ( | void | ) |
Print project info via UART0.
void neorv32_aux_print_hw_config | ( | void | ) |
Print hardware configuration information via UART0.
void neorv32_aux_print_hw_version | ( | uint32_t | impid | ) |
Print processor version in human-readable format via UART0.
[in] | impid | BCD-coded implementation ID (aka the version), typically from the mimpid CSR. |
void neorv32_aux_print_license | ( | void | ) |
Print project license via UART0.
void neorv32_aux_print_logo | ( | void | ) |
Print project logo via UART0.
void neorv32_aux_unixtime2date | ( | uint64_t | unixtime, |
date_t * | date ) |
Convert Unix time stamp to date.
[in] | unixtime | Unix time since 00:00:00 UTC, January 1, 1970 in seconds. |
[in,out] | date | Pointer to date and time struct (date_t). |
uint32_t neorv32_aux_xorshift32 | ( | void | ) |
XORSHIFT pseudo random number generator.