Skip to content
Snippets Groups Projects
Commit 7c51d75e authored by Eric Brombaugh's avatar Eric Brombaugh
Browse files

Disable DEBUGPRINTF I/O when FUNCONF_USE_DEBUGPRINTF = 0

parent 25c2770b
No related branches found
No related tags found
No related merge requests found
......@@ -1003,6 +1003,19 @@ void WaitForDebuggerToAttach()
#endif
#if defined( FUNCONF_USE_DEBUGPRINTF ) && !FUNCONF_USE_DEBUGPRINTF
int _write(int fd, const char *buf, int size)
{
return size;
}
// single to debug intf
int putchar(int c)
{
return 1;
}
#endif
void DelaySysTick( uint32_t n )
{
uint32_t targend = SysTick->CNT + n;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment