Verified Commit aea7b2db authored by Rahix's avatar Rahix
Browse files

feat(pycardium): Add DEBUG_printf



DEBUG_printf is used by MicroPython to print debug information if
MICROPY_DEBUG_VERBOSE is set to (1).
Signed-off-by: Rahix's avatarRahix <rahix@rahix.de>
parent 9a5eeb4d
#include <stdint.h>
#include <stdarg.h>
#include <stdio.h>
#include "py/lexer.h"
#include "py/mpconfig.h"
......@@ -29,6 +31,16 @@ void mp_hal_stdout_tx_strn(const char* str, mp_uint_t len)
epic_uart_write_str(str, len);
}
/* Used by MicroPython for debug output */
int DEBUG_printf(const char *fmt, ...)
{
va_list args;
va_start(args, fmt);
int ret = vprintf(fmt, args);
va_end(args);
return ret;
}
bool do_interrupt = false;
/* Timer Interrupt used for control char notification */
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment