From 6cf6f19e08cc129a766cc014eb3c22e249a5a507 Mon Sep 17 00:00:00 2001 From: cnlohr <lohr85@gmail.com> Date: Tue, 14 Mar 2023 18:54:18 -0400 Subject: [PATCH] Fix compile for non-debug interface --- ch32v003fun/ch32v003fun.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ch32v003fun/ch32v003fun.c b/ch32v003fun/ch32v003fun.c index 72f14f2..8de04b1 100644 --- a/ch32v003fun/ch32v003fun.c +++ b/ch32v003fun/ch32v003fun.c @@ -920,7 +920,6 @@ int _write(int fd, const char *buf, int size) } return size; } -#endif void SetupDebugPrintf() { @@ -934,6 +933,8 @@ void WaitForDebuggerToAttach() while( ((*DMDATA0) & 0x80) ); } +#endif + void DelaySysTick( uint32_t n ) { SysTick->SR &= ~(1 << 0); -- GitLab