From ee60fd756aa015be799e430d230a8f33266421de Mon Sep 17 00:00:00 2001 From: cnlohr <lohr85@gmail.com> Date: Sat, 19 Aug 2023 14:03:51 -0400 Subject: [PATCH] Fix compile --- ch32v003fun/ch32v003fun.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ch32v003fun/ch32v003fun.h b/ch32v003fun/ch32v003fun.h index f467b24..339429f 100644 --- a/ch32v003fun/ch32v003fun.h +++ b/ch32v003fun/ch32v003fun.h @@ -5064,6 +5064,7 @@ static inline uint32_t __get_SP(void) // Depending on a LOT of factors, it's about 6 cycles per n. // **DO NOT send it zero or less.** +#ifndef __MACOSX__ static inline void Delay_Tiny( int n ) { asm volatile( "\ mv a5, %[n]\n\ @@ -5071,6 +5072,7 @@ static inline void Delay_Tiny( int n ) { c.addi a5, -1\n\ c.bnez a5, 1b" : : [n]"r"(n) : "a5" ); } +#endif #endif -- GitLab