?lang_form? ?lang_select? ?lang_submit? ?lang_endform?
{HEADER END}
{FILE START}

library

?curdirlinks? - Rev 32

?prevdifflink? - Blame - ?getfile?

#include "Compiler.h"
#include "timer.h"
#include "HardwareProfile.h"

#define __DELAY_C

#if defined(__C32__)
void DelayMs(WORD ms)
{
    unsigned char i;
    while(ms--)
    {
        i=4;
        while(i--)
        {
            Delay10us(25);
        }
    }
}

void Delay10us(DWORD dwCount)
{
        volatile DWORD _dcnt;

        _dcnt = dwCount*((DWORD)(0.00001/(1.0/GetInstructionClock())/10));
        while(_dcnt--)
        {
                #if defined(__C32__)
                        Nop();
                        Nop();
                        Nop();
                #endif
        }
}
#endif

{FILE END}
{FOOTER START}

Powered by WebSVN v2.8.3