示例#1
0
        //static uint countTicks = 0;

        public static void reset()
        {
            gba_time           = new Gbatime();
            gpioData           = new GPIOData();
            gpioData.retval    = 0;
            gpioData.select    = 0;
            gpioData.enable    = 0;
            gpioData.command   = 0;
            gpioData.dataLen   = 0;
            gpioData.bits      = 0;
            gpioData.state     = GPIOState.IDLE;
            gpioData.clockslow = 0;

            framecount = 0;

            gba_time.tm_year_high = 0; //0;
            gba_time.tm_year_low  = 0; //9;
            gba_time.tm_mon_high  = 0; //1;
            gba_time.tm_mon_low   = 0; //2;
            gba_time.tm_mday_high = 0; //3;
            gba_time.tm_mday_low  = 0; //1;
            gba_time.tm_wday_high = 0; //0;
            gba_time.tm_wday_low  = 0; //6;
            gba_time.tm_hour_high = 0; //2;
            gba_time.tm_hour_low  = 0; //3;
            gba_time.tm_min_high  = 0; //5;
            gba_time.tm_min_low   = 0; //9;
            gba_time.tm_sec_high  = 0; //4;
            gba_time.tm_sec_low   = 0; //5;

            diffSeconds = 0;           // 3600;
        }
 public override int GetHashCode() => GPIOData != null?GPIOData.GetHashCode() : 0;