2009-09-26 16:08:05 +02:00
|
|
|
/* stub */
|
2010-02-12 14:55:15 +01:00
|
|
|
|
2011-06-24 12:45:58 +02:00
|
|
|
/*
|
|
|
|
static inline void mdelay(u32_t time)
|
2010-02-12 14:55:15 +01:00
|
|
|
{
|
|
|
|
time /= 10;
|
|
|
|
if(!time) time = 1;
|
|
|
|
|
|
|
|
__asm__ __volatile__ (
|
|
|
|
"call *__imp__Delay"
|
|
|
|
::"b" (time));
|
|
|
|
__asm__ __volatile__ (
|
|
|
|
"":::"ebx");
|
|
|
|
|
|
|
|
};
|
|
|
|
|
2011-06-24 12:45:58 +02:00
|
|
|
static inline void udelay(u32_t delay)
|
2010-02-12 14:55:15 +01:00
|
|
|
{
|
|
|
|
if(!delay) delay++;
|
|
|
|
delay*= 500;
|
|
|
|
|
|
|
|
while(delay--)
|
|
|
|
{
|
|
|
|
__asm__ __volatile__(
|
|
|
|
"xorl %%eax, %%eax \n\t"
|
|
|
|
"cpuid"
|
|
|
|
:::"eax","ebx","ecx","edx" );
|
|
|
|
}
|
|
|
|
}
|
2011-06-24 12:45:58 +02:00
|
|
|
*/
|