Exemplo n.º 1
0
        public unsafe static void Sysatt_GetSysname(byte *name, byte lenth, runattinf *att)
        {
            if (lenth < 5)
            {
                uint num = 0u;
                Kuozhan.memcpy((byte *)(&num), name, (int)lenth);
                fixed(void *ptr = (&Sysatt.xitong32[0]))
                {
                    num = Datafind.Datafind_FindU32_Memory(&num, (uint *)ptr, Sysatt.xitong32qyt, (uint)(Marshal.SizeOf(default(xitongtype_32)) / 4));
                }

                if (num != 65535u)
                {
                    Sysatt.Sysatt_GetXitongval(4, (byte)num, att);
                }
            }
            else if (lenth < 9)
            {
                ulong num2 = 0uL;
                Kuozhan.memcpy((byte *)(&num2), name, (int)lenth);
                uint num;
                fixed(void *ptr = (&Sysatt.xitong64[0]))
                {
                    num = Datafind.Datafind_FindU64_Memory(&num2, (uint *)ptr, Sysatt.xitong64qyt, (uint)(Marshal.SizeOf(default(xitongtype_64)) / 4));
                }

                if (num != 65535u)
                {
                    Sysatt.Sysatt_GetXitongval(8, (byte)num, att);
                }
            }
        }
Exemplo n.º 2
0
 public static void GuidataAppinit()
 {
     Sysatt.initstsatt();
     CodeRun.Cominit();
     Attmake.attinit();
     guidatamake.xiliepaichucom64[0] = new ulong[]
     {
         "cfgpio\0\0".strtoU64()
     };
     guidatamake.xiliepaichucom32[0] = new uint[]
     {
         "repo".strtoU32(),
         "wepo".strtoU32(),
         "rept".strtoU32(),
         "wept".strtoU32()
     };
     guidatamake.xiliepaichuxitong32[0] = new uint[]
     {
         "rtc0".strtoU32(),
         "rtc1".strtoU32(),
         "rtc2".strtoU32(),
         "rtc3".strtoU32(),
         "rtc4".strtoU32(),
         "rtc5".strtoU32(),
         "pio0".strtoU32(),
         "pio1".strtoU32(),
         "pio2".strtoU32(),
         "pio3".strtoU32(),
         "pio4".strtoU32(),
         "pio5".strtoU32(),
         "rtc6".strtoU32(),
         "pio6".strtoU32(),
         "pio7".strtoU32(),
         "pwm4".strtoU32(),
         "pwm5".strtoU32(),
         "pwm6".strtoU32(),
         "pwm7".strtoU32(),
         "pwmf".strtoU32()
     };
 }