mirror of
https://github.com/oopuuu/zTC1.git
synced 2025-12-19 16:33:20 +08:00
修复mico-sdk错误
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user