Beispiel #1
0
        public static uint[] FromApp(string path)
        {
            if (!Path.IsPathRooted(path))
            {
                path = Path.Combine(PathTools.ProjectPath, "apps", path);
            }

            var tools = new FirmwareTools(path);

            if (!tools.FirmwareFromAppFolder())
            {
                throw new Exception($"Failed to get instructions for app {path}");
            }

            return(tools.Instructions());
        }
Beispiel #2
0
 protected QuSoCModule()
 {
     FromInstructions(FirmwareTools.FromApp(GetType().Name));
 }