mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-06-21 23:00:39 +08:00
feat(esp8266): Add "putc" and "vprintf" of version "ets_"
This commit is contained in:
@ -28,14 +28,37 @@
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
#include <stdio.h>
|
||||
#include <stdarg.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
|
||||
uint32_t os_random(void);
|
||||
int32_t os_get_random(unsigned char *buf, size_t len);
|
||||
|
||||
/**
|
||||
* @brief put a character to uart or other devices, similar with putc.
|
||||
*
|
||||
* @param c : a character.
|
||||
*
|
||||
* @return int : the character written as an unsigned char cast to an int or EOF on error.
|
||||
*/
|
||||
int ets_putc(int c);
|
||||
|
||||
/**
|
||||
* @brief Printf the strings to uart or other devices, similar with vprintf, simple than vprintf.
|
||||
* Can not print float point data format, or longlong data format.
|
||||
*
|
||||
* @param const char *fmt : See vprintf.
|
||||
*
|
||||
* @param ap : parameter list, see vprintf.
|
||||
*
|
||||
* @return int : the length printed to the output device.
|
||||
*/
|
||||
int ets_vprintf(const char *fmt, va_list ap);
|
||||
|
||||
/**
|
||||
* @brief Printf the strings to uart or other devices, similar with printf, simple than printf.
|
||||
* Can not print float point data format, or longlong data format.
|
||||
|
Reference in New Issue
Block a user