![]() |
NEORV32 Software Framework Documentation
The NEORV32 RISC-V Processor
|
RISC-V semihosting source file. More...
Functions | |
| void | neorv32_semihosting_putc (char c) |
| void | neorv32_semihosting_puts (const char *pnt) |
| char | neorv32_semihosting_getc (void) |
| int | neorv32_semihosting_open (char *path, int mode) |
| int | neorv32_semihosting_close (int file) |
| int | neorv32_semihosting_write (int file, char *buffer, int len) |
| int | neorv32_semihosting_read (int file, char *buffer, int len) |
| int | neorv32_semihosting_istty (int file) |
| int | neorv32_semihosting_seek (int file, int pos) |
| int | neorv32_semihosting_flen (int file) |
| int | neorv32_semihosting_time (void) |
| int | neorv32_semihosting_system (char *cmd) |
RISC-V semihosting source file.
| int neorv32_semihosting_close | ( | int | file | ) |
Close file on host system.
| [in] | file | File handle. |
| int neorv32_semihosting_flen | ( | int | file | ) |
Returns the length of a specified file.
| [in] | file | File handle. |
| char neorv32_semihosting_getc | ( | void | ) |
Read single character from host's STDIN.
| int neorv32_semihosting_istty | ( | int | file | ) |
Checks if a host file is connected to an interactive device.
| [in] | file | File handle. |
| int neorv32_semihosting_open | ( | char * | path, |
| int | mode ) |
Open file on host system.
| [in] | path | Path/file name (zero-terminated string). |
| [in] | mode | File access mode (ISO C). |
| void neorv32_semihosting_putc | ( | char | c | ) |
Print single character to host's STDOUT.
| [in] | c | Character to print. |
| void neorv32_semihosting_puts | ( | const char * | pnt | ) |
Print zero-terminated string to host's STDOUT.
| [in] | pnt | Pointer to zero-terminated string. |
| int neorv32_semihosting_read | ( | int | file, |
| char * | buffer, | ||
| int | len ) |
Read data buffer from host's file handle.
| [in] | file | File handle (stream; should be 0 = STDIN). |
| [in] | buffer | Pointer to data buffer. |
| [in] | len | Length of data to read. |
| int neorv32_semihosting_seek | ( | int | file, |
| int | pos ) |
Seeks to a specified position in a file.
| [in] | file | File handle. |
| [in] | pos | Offset specified from the start of the file |
| int neorv32_semihosting_system | ( | char * | cmd | ) |
Execute command in host's console.
| [in] | cmd | Pointer to zero-terminated command string. |
| int neorv32_semihosting_time | ( | void | ) |
Get host's current system time.
| int neorv32_semihosting_write | ( | int | file, |
| char * | buffer, | ||
| int | len ) |
Write data buffer to host's file handle.
| [in] | file | File handle (stream; should be 1 = STDOUT). |
| [in] | buffer | Pointer to data buffer. |
| [in] | len | Length of data to write. |