PORT按CPU型号更简单
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
#include <os_loopdelay.h>
|
||||
|
||||
#if defined (__GNUC__) /*!< GNU Compiler */
|
||||
__attribute__((naked))
|
||||
void os_loop_delay(unsigned long ulCount){
|
||||
__asm(" add a0, a0, -1 \n"
|
||||
" bne x0, a0, os_loop_delay \n"
|
||||
" ret ");
|
||||
}
|
||||
#endif /* __CC_ARM */
|
||||
Reference in New Issue
Block a user