修复mico-sdk错误

This commit is contained in:
nhkefus
2025-03-11 15:54:45 +08:00
parent 3422912129
commit 2ccb892a1c
2152 changed files with 664341 additions and 702636 deletions

View File

@@ -15,7 +15,7 @@ extern "C" {
#include "type.h"
extern void __udelay(uint32_t us);
extern void __udelay(uint32_t us);
extern void Delay(uint32_t Loops);
/*
@@ -39,15 +39,15 @@ __DELAY
BHI __DELAY
BX LR
}
#elif defined(__ICCARM__)
static __INLINE void Delay(uint32_t Loops)
{
asm("__DELAY: \n"
"SUBS R0, R0, #1 \n"
"BHI.W __DELAY \n"
"BX LR \n");
}
#endif
#elif defined(__ICCARM__)
static __INLINE void Delay(uint32_t Loops)
{
asm("__DELAY: \n"
"SUBS R0, R0, #1 \n"
"BHI.W __DELAY \n"
"BX LR \n");
}
#endif
#define WaitMs(Ms) DelayMs(Ms)