示例#1
0
文件: sys.cs 项目: h7ga40/uITron3
        internal uint sys_now()
        {
            SYSTIME time = new SYSTIME();

            m_Nucleus.GetSystemTime(out time);

            return (uint)(time.Value);
        }
示例#2
0
文件: Itron.cs 项目: h7ga40/uITron3
        public ER get_tim(out SYSTIME pk_tim)
        {
            ER Result = ER.E_NOEXS;

            if (g_Kernel == null) {
                pk_tim = new SYSTIME();
                return ER.E_DLT;
            }

            g_Kernel.LockCPU();
            try {
                Result = g_Kernel.Nucleus.GetSystemTime(out pk_tim);
            }
            finally {
                g_Kernel.UnlockCPU();
            }

            return Result;
        }
示例#3
0
文件: Nucleus.cs 项目: h7ga40/uITron3
        public ER GetSystemTime(out SYSTIME pk_tim)
        {
            //if(pk_tim == null)
            //	return ER.E_PAR;

            pk_tim = m_SysTime;

            return ER.E_OK;
        }
示例#4
0
文件: Itron.cs 项目: h7ga40/uITron3
        public ER set_tim(ref SYSTIME pk_tim)
        {
            ER Result = ER.E_NOEXS;

            if (g_Kernel == null)
                return ER.E_DLT;

            g_Kernel.LockCPU();
            try {
                Result = g_Kernel.Nucleus.SetSystemTime(ref pk_tim);
            }
            finally {
                g_Kernel.UnlockCPU();
            }

            return Result;
        }
示例#5
0
文件: Nucleus.cs 项目: h7ga40/uITron3
        public ER SetSystemTime(ref SYSTIME pk_tim)
        {
            //if(pk_tim == null)
            //	return ER.E_PAR;

            m_SysTime = pk_tim;

            return ER.E_OK;
        }