|
HARMcksL: ARM HAL toolbox (yet STM32 oriented) 1.6
SMFSW collection of HAL hacks for STM32
|
Stream redirection. More...

Functions | |
| int | _write (int file, char *ptr, int len) |
| syscalls implementation of _write | |
Stream redirection.
ITM_REDIRECT in compiler defines for stings to be printed to ITM0 port UART_REDIRECT and DBG_SERIAL in compiler defines with an UART instance to send printf likes strings to UART stdout stream is buffered, meaning that output will only be processed when '\n' (new line) character is sent to buffer. To override this behavior, stdout_no_buffer has to be called once in init routine to disable buffering, thus processing characters as they come. | int _write | ( | int | file, |
| char * | ptr, | ||
| int | len ) |
syscalls implementation of _write
| [in] | file | - unused |
| [in] | ptr | - pointer to string to send to stream |
| [in] | len | - length of string to send to stream |
| -1 | is returned in case of failure (UART) |
