FreeRTOS port on GAP8/RISC-V
|
Macros | |
#define | printf |
#define | sprintf |
#define | snprintf |
#define | vsnprintf |
#define | vprintf |
#define | _PRINTF_H_ |
#define | printf |
#define | sprintf |
#define | snprintf |
#define | vsnprintf |
#define | vprintf |
Functions | |
void | __io_lock () |
void | __io_unlock () |
void | _putchar (char character) |
int | printf_ (const char *format,...) |
int | sprintf_ (char *buffer, const char *format,...) |
int | snprintf_ (char *buffer, size_t count, const char *format,...) |
int | vsnprintf_ (char *buffer, size_t count, const char *format, va_list va) |
int | vprintf_ (const char *format, va_list va) |
int | fctprintf (void(*out)(char character, void *arg), void *arg, const char *format,...) |
#define _PRINTF_H_ |
#define printf |
Tiny printf implementation You have to implement putchar if you use printf() To avoid conflicts with the regular printf() API it is overridden by macro defines and internal underscore-appended functions like printf() are used
format | A string that specifies the format of the output |
Referenced by __malloc_dump(), __os_native_api_mutex_init(), __os_native_api_sem_init(), __os_native_kickoff(), __pi_octospi_ospi_config_set(), __pi_rtc_datetime_check(), __pi_rtc_handler(), __pi_spi_open(), __pi_uart_error_handler(), __pi_xip_open(), __pi_xip_set_page_config(), _isr_default(), helloworld(), main(), pi_fc_l1_malloc_dump(), pi_fll_frequency_set(), pi_l2_malloc(), pi_l2_malloc_dump(), pmp_exception_handler(), pmsis_event_kernel_init(), pmsis_event_kernel_main(), vPrvAssertFailed(), xip_data_exception_handler(), xip_insn_exception_handler(), and xip_irq_handler().
#define printf |
#define snprintf |
#define snprintf |
Tiny snprintf/vsnprintf implementation
buffer | A pointer to the buffer where to store the formatted string |
count | The maximum number of characters to store in the buffer, including a terminating null character |
format | A string that specifies the format of the output |
va | A value identifying a variable arguments list |
Referenced by TEST_CASE().
#define sprintf |
#define sprintf |
Tiny sprintf implementation Due to security reasons (buffer overflow) YOU SHOULD CONSIDER USING (V)SNPRINTF INSTEAD!
buffer | A pointer to the buffer where to store the formatted string. MUST be big enough to store the output! |
format | A string that specifies the format of the output |
Referenced by TEST_CASE().
#define vprintf |
Tiny vprintf implementation
format | A string that specifies the format of the output |
va | A value identifying a variable arguments list |
#define vprintf |
Referenced by vprintf_builder_1().
#define vsnprintf |
#define vsnprintf |
void __io_lock | ( | ) |
void __io_unlock | ( | ) |
void _putchar | ( | char | character | ) |
Output a character to a custom device like UART, used by the printf() function This function is declared here only. You have to write your custom implementation somewhere
character | Character to output |
References tfp_putc().
int fctprintf | ( | void(*)(char character, void *arg) | out, |
void * | arg, | ||
const char * | format, | ||
... | |||
) |
printf with output function You may use this as dynamic alternative to printf() with its fixed _putchar() output
out | An output function which takes one character and an argument pointer |
arg | An argument pointer for user data passed to output function |
format | A string that specifies the format of the output |
References _out_fct(), and _vsnprintf().
Referenced by TEST_CASE().
int printf_ | ( | const char * | format, |
... | |||
) |
References __io_lock(), __io_unlock(), _out_char(), and _vsnprintf().
int snprintf_ | ( | char * | buffer, |
size_t | count, | ||
const char * | format, | ||
... | |||
) |
References _out_buffer(), and _vsnprintf().
int sprintf_ | ( | char * | buffer, |
const char * | format, | ||
... | |||
) |
References _out_buffer(), and _vsnprintf().
int vprintf_ | ( | const char * | format, |
va_list | va | ||
) |
References _out_char(), and _vsnprintf().
int vsnprintf_ | ( | char * | buffer, |
size_t | count, | ||
const char * | format, | ||
va_list | va | ||
) |
References _out_buffer(), and _vsnprintf().