mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-05-31 15:41:02 +08:00
feat(esp8266): Add ets_printf in SDK side
This commit is contained in:
@ -36,6 +36,18 @@ extern "C" {
|
||||
uint32_t os_random(void);
|
||||
int32_t os_get_random(unsigned char *buf, size_t len);
|
||||
|
||||
/**
|
||||
* @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.
|
||||
*
|
||||
* @param const char *fmt : See printf.
|
||||
*
|
||||
* @param ... : See printf.
|
||||
*
|
||||
* @return int : the length printed to the output device.
|
||||
*/
|
||||
int ets_printf(const char *fmt, ...);
|
||||
|
||||
#ifndef os_printf
|
||||
#define os_printf printf
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user