Beispiel #1
0
void DelayMs(WORD delay)
{
    unsigned int int_status;
    while( delay-- )
    {
        OpenCoreTimer(GetSystemClock() / 2000);
        mConfigIntCoreTimer((CT_INT_ON | CT_INT_PRIOR_2 | CT_INT_SUB_PRIOR_0));
		while(!dflag);
   		dflag=0;
    }
	mDisableIntCoreTimer();
}
Beispiel #2
0
void SDCARD_Unmount(void)
{
	f_mount(MMC_DRIVE, NULL);
	mDisableIntCoreTimer();
}