Skip to content
Snippets Groups Projects
Unverified Commit aec6db47 authored by CNLohr's avatar CNLohr Committed by GitHub
Browse files

Merge pull request #216 from emeb/master

Disable DEBUGPRINTF I/O when FUNCONF_USE_DEBUGPRINTF = 0
parents 5087f780 4c537dce
No related branches found
No related tags found
No related merge requests found
......@@ -1003,6 +1003,22 @@ void WaitForDebuggerToAttach()
#endif
#if (defined( FUNCONF_USE_DEBUGPRINTF ) && !FUNCONF_USE_DEBUGPRINTF) && \
((defined( FUNCONF_USE_UARTPRINTF ) && !FUNCONF_USE_UARTPRINTF) || \
!defined( FUNCONF_USE_UARTPRINTF ))
#warning( DEBUG Print Disabled)
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