From 73196dd48da9d16b6949ab9dec0ae0a5d63accfe Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Thu, 14 Feb 2019 18:50:59 +0200 Subject: Working on DFU firmware upgrade... --- .../FirmwareUpgradeManager.cs | 329 +++++++++++++++++++++ .../FirmwareUpgradeManagerState.cs | 35 +++ .../FirmwareUpgradeProgressEventArgs.cs | 15 + .../ProgressAnimator.cs | 93 ++++++ .../ProgressDispatcher.cs | 80 +++++ .../Properties/AssemblyInfo.cs | 22 ++ .../Properties/Resources.Designer.cs | 62 ++++ .../Properties/Resources.resx | 117 ++++++++ .../Properties/Settings.Designer.cs | 30 ++ .../Properties/Settings.settings | 7 + .../Tango.FirmwareUpdateLib.WPF.csproj | 93 ++++++ 11 files changed, 883 insertions(+) create mode 100644 Software/Visual_Studio/Firmware/Tango.FirmwareUpdateLib.WPF/FirmwareUpgradeManager.cs create mode 100644 Software/Visual_Studio/Firmware/Tango.FirmwareUpdateLib.WPF/FirmwareUpgradeManagerState.cs create mode 100644 Software/Visual_Studio/Firmware/Tango.FirmwareUpdateLib.WPF/FirmwareUpgradeProgressEventArgs.cs create mode 100644 Software/Visual_Studio/Firmware/Tango.FirmwareUpdateLib.WPF/ProgressAnimator.cs create mode 100644 Software/Visual_Studio/Firmware/Tango.FirmwareUpdateLib.WPF/ProgressDispatcher.cs create mode 100644 Software/Visual_Studio/Firmware/Tango.FirmwareUpdateLib.WPF/Properties/AssemblyInfo.cs create mode 100644 Software/Visual_Studio/Firmware/Tango.FirmwareUpdateLib.WPF/Properties/Resources.Designer.cs create mode 100644 Software/Visual_Studio/Firmware/Tango.FirmwareUpdateLib.WPF/Properties/Resources.resx create mode 100644 Software/Visual_Studio/Firmware/Tango.FirmwareUpdateLib.WPF/Properties/Settings.Designer.cs create mode 100644 Software/Visual_Studio/Firmware/Tango.FirmwareUpdateLib.WPF/Properties/Settings.settings create mode 100644 Software/Visual_Studio/Firmware/Tango.FirmwareUpdateLib.WPF/Tango.FirmwareUpdateLib.WPF.csproj (limited to 'Software/Visual_Studio/Firmware') diff --git a/Software/Visual_Studio/Firmware/Tango.FirmwareUpdateLib.WPF/FirmwareUpgradeManager.cs b/Software/Visual_Studio/Firmware/Tango.FirmwareUpdateLib.WPF/FirmwareUpgradeManager.cs new file mode 100644 index 000000000..d79989ecb --- /dev/null +++ b/Software/Visual_Studio/Firmware/Tango.FirmwareUpdateLib.WPF/FirmwareUpgradeManager.cs @@ -0,0 +1,329 @@ +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading; +using System.Threading.Tasks; +using System.Windows; +using System.Windows.Threading; +using Tango.Core; + +namespace Tango.FirmwareUpdateLib.WPF +{ + public class FirmwareUpgradeManager : ExtendedObject + { + private FirmwareUpdateManager _updater; + private List _current_devices; + + #region Events + + /// + /// Reports about the progress of an on-going firmware upgrade. + /// + public event EventHandler UpgradeProgress; + + #endregion + + #region Properties + + private FirmwareUpgradeManagerState _state; + /// + /// Gets or sets the current manager state. + /// + public FirmwareUpgradeManagerState State + { + get { return _state; } + private set { _state = value; RaisePropertyChangedAuto(); } + } + + #endregion + + /// + /// Initializes a new instance of the class. + /// + public FirmwareUpgradeManager() + { + _current_devices = new List(); + } + + /// + /// Performs a full automatic upgrade by getting the first DFU device switching to DFU mode if necessary. + /// Uploading, verifying, resetting the device, then checking device existence. + /// + /// The MCU bin file path. + /// + public Task PerformUpgrade(byte[] mcuData) + { + EnsureStateIdle(); + + State = FirmwareUpgradeManagerState.Busy; + + TaskCompletionSource taskSource = new TaskCompletionSource(); + + ProgressDispatcher progressDispatcher = new ProgressDispatcher(); + + Task.Factory.StartNew(() => + { + try + { + OnUpgradeProgressChanged(100, 0, FirmwareUpgradeManagerState.Initializing); + Initialize(); + Thread.Sleep(1000); + + LogManager.Log("Initializing progress dispatcher..."); + + OnUpgradeProgressChanged(100, 10, State); + + LogManager.Log("Starting automatic full upgrade..."); + + OnUpgradeProgressChanged(100, 20, FirmwareUpgradeManagerState.EnumeratingDevices); + var device = GetAvailableDevices().FirstOrDefault(); + Thread.Sleep(1000); + + State = FirmwareUpgradeManagerState.Busy; + + OnUpgradeProgressChanged(100, 30, State); + + Thread.Sleep(1000); + + if (device == null) + { + throw LogManager.Log(new NullReferenceException("No DFU device found on the system.")); + } + + LogManager.Log("Found DFU device..."); + LogManager.Log($"Name: {device.DeviceName}"); + LogManager.Log($"Mode: {device.Mode}"); + + if (device.Mode == DFUMode.RunTime) + { + State = FirmwareUpgradeManagerState.SwitchingToDFU; + LogManager.Log("Switching to DFU mode..."); + OnUpgradeProgressChanged(100, 40, State); + Thread.Sleep(1000); + + device.SwitchToDFUMode(); + LogManager.Log("Waiting for the device to comeback (3 sec)..."); + + State = FirmwareUpgradeManagerState.Waiting; + OnUpgradeProgressChanged(100, 50, State); + Thread.Sleep(3000); + + LogManager.Log("Looking for the modified DFU device..."); + OnUpgradeProgressChanged(100, 60, FirmwareUpgradeManagerState.EnumeratingDevices); + Thread.Sleep(1000); + + device = GetAvailableDevices().FirstOrDefault(); + + State = FirmwareUpgradeManagerState.SwitchingToDFU; + OnUpgradeProgressChanged(100, 60, State); + + if (device == null) + { + throw LogManager.Log(new NullReferenceException("Could not locate the modified DFU device.")); + } + + if (device.Mode == DFUMode.RunTime) + { + throw LogManager.Log(new InvalidOperationException("The DFU device was found but has failed to switch into DFU mode.")); + } + + LogManager.Log("DFU device successfully switched to DFU mode."); + LogManager.Log($"Name: {device.DeviceName}"); + LogManager.Log($"Mode: {device.Mode}"); + } + else + { + LogManager.Log("Device is in DFU mode. Skipping DFU switching..."); + } + + State = FirmwareUpgradeManagerState.StartingUpload; + OnUpgradeProgressChanged(100, 100, State); + + LogManager.Log("Starting DFU upload..."); + + ProgressMode current_mode = ProgressMode.Verifying; + + progressDispatcher.Initialize(); + + progressDispatcher.Invoke(() => + { + device.Upload(mcuData, (mode, current, total) => + { + try + { + if (current_mode != mode) + { + current_mode = mode; + LogManager.Log($"DFU Upload Status: {current_mode}"); + } + + if (mode == ProgressMode.Uploading) + { + OnUpgradeProgressChanged(total, current, FirmwareUpgradeManagerState.Uploading); + } + else if (mode == ProgressMode.Verifying) + { + OnUpgradeProgressChanged(total, current, FirmwareUpgradeManagerState.Verifying); + } + + if (mode == ProgressMode.Error) + { + throw LogManager.Log(new ApplicationException("DFU upload got an error notification!")); + } + else if (mode == ProgressMode.Completed) + { + LogManager.Log("DFU upload completed successfully."); + LogManager.Log("Resetting the device..."); + State = FirmwareUpgradeManagerState.Resetting; + OnUpgradeProgressChanged(100, 0, State); + device.Reset(); + LogManager.Log("Waiting for the device to comeback (3 sec)..."); + + State = FirmwareUpgradeManagerState.Waiting; + OnUpgradeProgressChanged(100, 30, State); + Thread.Sleep(3000); + + LogManager.Log("Looking for the modified DFU device..."); + OnUpgradeProgressChanged(100, 70, FirmwareUpgradeManagerState.EnumeratingDevices); + device = GetAvailableDevices().FirstOrDefault(); + Thread.Sleep(1000); + + State = FirmwareUpgradeManagerState.Busy; + OnUpgradeProgressChanged(100, 90, State); + Thread.Sleep(1000); + + if (device == null) + { + throw LogManager.Log(new NullReferenceException("Could not locate the modified DFU device.")); + } + + if (device.Mode == DFUMode.DFU) + { + throw LogManager.Log(new InvalidOperationException("The DFU device was found but has failed to switch back into RunTime mode.")); + } + + LogManager.Log("DFU device successfully upgraded!"); + LogManager.Log($"Name: {device.DeviceName}"); + LogManager.Log($"Mode: {device.Mode}"); + + State = FirmwareUpgradeManagerState.Completed; + OnUpgradeProgressChanged(100, 100, State); + + taskSource.SetResult(true); + + progressDispatcher.Close(); + } + + + DoEvents(); + } + catch (Exception ex) + { + taskSource.SetException(ex); + progressDispatcher.Close(); + } + finally + { + State = FirmwareUpgradeManagerState.Idle; + } + }); + }); + } + catch (Exception ex) + { + taskSource.SetException(ex); + } + finally + { + State = FirmwareUpgradeManagerState.Idle; + } + }); + + return taskSource.Task; + } + + /// + /// Ensures the state idle. + /// + /// + private void EnsureStateIdle() + { + if (State != FirmwareUpgradeManagerState.Idle) throw new InvalidOperationException($"Operation can be performed only on {FirmwareUpgradeManagerState.Idle} state."); + } + + /// + /// Gets the available devices. + /// + /// + private List GetAvailableDevices() + { + State = FirmwareUpgradeManagerState.EnumeratingDevices; + + LogManager.Log("Disposing previous devices..."); + foreach (var device in _current_devices) + { + try + { + LogManager.Log($"Disposing previous device {device.DeviceName}..."); + device.Dispose(); + } + catch { } + } + + try + { + LogManager.Log("Enumerating available DFU devices..."); + _current_devices = _updater.GetAvailableDevices(false).Where(x => !x.DeviceName.Contains("In-Circuit Debug Interface")).ToList(); + } + catch (Exception ex) + { + throw LogManager.Log(ex, "Error enumerating available DFU devices."); + } + + return _current_devices; + } + + /// + /// Initializes this instance. + /// + public void Initialize() + { + State = FirmwareUpgradeManagerState.Initializing; + try + { + LogManager.Log("Initializing firmware upgrade API..."); + _updater = new FirmwareUpdateManager(); + _updater.Initialize(); + } + catch (Exception ex) + { + throw LogManager.Log(ex, "Error initializing firmware upgrade API."); + } + } + + private void DoEvents() + { + Application.Current.Dispatcher.Invoke(DispatcherPriority.Background, + new Action(delegate { })); + } + + /// + /// Raises the event. + /// + /// The total. + /// The progress. + /// The state. + protected virtual void OnUpgradeProgressChanged(double total, double progress, FirmwareUpgradeManagerState state) + { + UpgradeProgress?.Invoke(this, new FirmwareUpgradeProgressEventArgs() + { + Progress = progress, + Total = total, + State = state, + }); + } + } +} diff --git a/Software/Visual_Studio/Firmware/Tango.FirmwareUpdateLib.WPF/FirmwareUpgradeManagerState.cs b/Software/Visual_Studio/Firmware/Tango.FirmwareUpdateLib.WPF/FirmwareUpgradeManagerState.cs new file mode 100644 index 000000000..bcd9f69c2 --- /dev/null +++ b/Software/Visual_Studio/Firmware/Tango.FirmwareUpdateLib.WPF/FirmwareUpgradeManagerState.cs @@ -0,0 +1,35 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.FirmwareUpdateLib.WPF +{ + public enum FirmwareUpgradeManagerState + { + [Description("")] + Idle, + [Description("Working...")] + Busy, + [Description("Initializing...")] + Initializing, + [Description("Locating DFU devices...")] + EnumeratingDevices, + [Description("Switching to DFU mode...")] + SwitchingToDFU, + [Description("Initializing upload sequence...")] + StartingUpload, + [Description("Uploading...")] + Uploading, + [Description("Verifying...")] + Verifying, + [Description("Resetting the device...")] + Resetting, + [Description("Waiting for the device...")] + Waiting, + [Description("Firmware upgrade completed.")] + Completed, + } +} diff --git a/Software/Visual_Studio/Firmware/Tango.FirmwareUpdateLib.WPF/FirmwareUpgradeProgressEventArgs.cs b/Software/Visual_Studio/Firmware/Tango.FirmwareUpdateLib.WPF/FirmwareUpgradeProgressEventArgs.cs new file mode 100644 index 000000000..bb7ddfa17 --- /dev/null +++ b/Software/Visual_Studio/Firmware/Tango.FirmwareUpdateLib.WPF/FirmwareUpgradeProgressEventArgs.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.FirmwareUpdateLib.WPF +{ + public class FirmwareUpgradeProgressEventArgs : EventArgs + { + public FirmwareUpgradeManagerState State { get; set; } + public double Total { get; set; } + public double Progress { get; set; } + } +} diff --git a/Software/Visual_Studio/Firmware/Tango.FirmwareUpdateLib.WPF/ProgressAnimator.cs b/Software/Visual_Studio/Firmware/Tango.FirmwareUpdateLib.WPF/ProgressAnimator.cs new file mode 100644 index 000000000..755df4dcb --- /dev/null +++ b/Software/Visual_Studio/Firmware/Tango.FirmwareUpdateLib.WPF/ProgressAnimator.cs @@ -0,0 +1,93 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows; +using System.Windows.Media.Animation; + +namespace Tango.FirmwareUpdateLib.WPF +{ + /// + /// Represents a progress animation component capable of exposing a current and total progress with animations. + /// + /// + public class ProgressAnimator : FrameworkElement + { + /// + /// Gets or sets the animation duration between each update (Default 2 seconds). + /// + public TimeSpan Duration + { + get { return (TimeSpan)GetValue(DurationProperty); } + set { SetValue(DurationProperty, value); } + } + public static readonly DependencyProperty DurationProperty = + DependencyProperty.Register("Duration", typeof(TimeSpan), typeof(ProgressAnimator), new PropertyMetadata(TimeSpan.FromSeconds(1))); + + /// + /// Gets or sets the current progress. (Use the ApplyProgress method instead of updating this directly). + /// + public double Current + { + get { return (double)GetValue(CurrentProperty); } + set { SetValue(CurrentProperty, value); } + } + public static readonly DependencyProperty CurrentProperty = + DependencyProperty.Register("Current", typeof(double), typeof(ProgressAnimator), new PropertyMetadata(0.0)); + + /// + /// Gets or sets the total expected progress. (Use the ApplyProgress method instead of updating this directly). + /// + public double Total + { + get { return (double)GetValue(TotalProperty); } + set { SetValue(TotalProperty, value); } + } + public static readonly DependencyProperty TotalProperty = + DependencyProperty.Register("Total", typeof(double), typeof(ProgressAnimator), new PropertyMetadata(100.0)); + + /// + /// Gets or sets a value indicating whether this instance is intermediate. + /// + /// + /// true if this instance is intermediate; otherwise, false. + /// + public bool IsIntermediate + { + get { return (bool)GetValue(IsIntermediateProperty); } + set { SetValue(IsIntermediateProperty, value); } + } + public static readonly DependencyProperty IsIntermediateProperty = + DependencyProperty.Register("IsIntermediate", typeof(bool), typeof(ProgressAnimator), new PropertyMetadata(true)); + + /// + /// Applies the progress properties animation. + /// + /// The current. + /// The total. + /// Will override the default duration for the next progress animation. + public void ApplyProgress(double current, double total, TimeSpan? duration = null) + { + Total = total; + IsIntermediate = false; + + DoubleAnimation ani = new DoubleAnimation(); + ani.To = current; + + ani.Duration = duration != null ? duration.Value : Duration; + + this.BeginAnimation(CurrentProperty, ani, HandoffBehavior.SnapshotAndReplace); + } + + /// + /// Resets the progress properties. + /// + public void ResetProgress() + { + this.BeginAnimation(CurrentProperty, null, HandoffBehavior.SnapshotAndReplace); + Current = 0; + IsIntermediate = true; + } + } +} diff --git a/Software/Visual_Studio/Firmware/Tango.FirmwareUpdateLib.WPF/ProgressDispatcher.cs b/Software/Visual_Studio/Firmware/Tango.FirmwareUpdateLib.WPF/ProgressDispatcher.cs new file mode 100644 index 000000000..448e27f55 --- /dev/null +++ b/Software/Visual_Studio/Firmware/Tango.FirmwareUpdateLib.WPF/ProgressDispatcher.cs @@ -0,0 +1,80 @@ +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Linq; +using System.Text; +using System.Threading; +using System.Threading.Tasks; +using System.Windows; +using System.Windows.Threading; + +namespace Tango.FirmwareUpdateLib.WPF +{ + public class ProgressDispatcher + { + private Dispatcher _dispatcher; + private Window _dummyWindow; //Dummy window for the video dispatcher. + private Thread _windowThread; //The video dispatcher thread. + private bool _initialized; + + public void Initialize() + { + if (!_initialized) + { + _windowThread = new Thread(VideoThreadMethod); + _windowThread.Name = "Progress Thread"; + _windowThread.SetApartmentState(ApartmentState.STA); + _windowThread.Start(); + + while (!_initialized) + { + Thread.Sleep(10); + } + } + } + + private void VideoThreadMethod() + { + _dummyWindow = new Window(); + _dummyWindow.Width = 0; + _dummyWindow.Height = 0; + _dummyWindow.WindowStyle = WindowStyle.None; + _dummyWindow.ShowInTaskbar = false; + _dummyWindow.ShowActivated = false; + _dummyWindow.ResizeMode = ResizeMode.NoResize; + _dummyWindow.Visibility = Visibility.Hidden; + _dummyWindow.Opacity = 0; + + _dummyWindow.Closed += (x, y) => _dummyWindow.Dispatcher.InvokeShutdown(); + _dummyWindow.Loaded += (x, y) => + { + _dummyWindow.Width = 0; + _dummyWindow.Height = 0; + _dummyWindow.WindowStyle = WindowStyle.None; + _dummyWindow.ShowInTaskbar = false; + _dummyWindow.ShowActivated = false; + _dummyWindow.ResizeMode = ResizeMode.NoResize; + _dummyWindow.Visibility = Visibility.Hidden; + _dummyWindow.Opacity = 0; + + _dispatcher = _dummyWindow.Dispatcher; + _initialized = true; + }; + + Debug.WriteLine("Progress Dispatcher Initialized!"); + _dummyWindow.Show(); + Dispatcher.Run(); + + } + + public void Invoke(Action action) + { + _dispatcher.BeginInvoke(action); + } + + public void Close() + { + _dispatcher.InvokeShutdown(); + } + } +} diff --git a/Software/Visual_Studio/Firmware/Tango.FirmwareUpdateLib.WPF/Properties/AssemblyInfo.cs b/Software/Visual_Studio/Firmware/Tango.FirmwareUpdateLib.WPF/Properties/AssemblyInfo.cs new file mode 100644 index 000000000..31aea93a0 --- /dev/null +++ b/Software/Visual_Studio/Firmware/Tango.FirmwareUpdateLib.WPF/Properties/AssemblyInfo.cs @@ -0,0 +1,22 @@ +using System.Reflection; +using System.Resources; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using System.Windows; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Tango.FirmwareUpdateLib.WPF")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Tango.FirmwareUpdateLib.WPF")] +[assembly: AssemblyCopyright("Copyright © 2019")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] diff --git a/Software/Visual_Studio/Firmware/Tango.FirmwareUpdateLib.WPF/Properties/Resources.Designer.cs b/Software/Visual_Studio/Firmware/Tango.FirmwareUpdateLib.WPF/Properties/Resources.Designer.cs new file mode 100644 index 000000000..019d81974 --- /dev/null +++ b/Software/Visual_Studio/Firmware/Tango.FirmwareUpdateLib.WPF/Properties/Resources.Designer.cs @@ -0,0 +1,62 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Tango.FirmwareUpdateLib.WPF.Properties { + + + /// + /// A strongly-typed resource class, for looking up localized strings, etc. + /// + // This class was auto-generated by the StronglyTypedResourceBuilder + // class via a tool like ResGen or Visual Studio. + // To add or remove a member, edit your .ResX file then rerun ResGen + // with the /str option, or rebuild your VS project. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resources { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() { + } + + /// + /// Returns the cached ResourceManager instance used by this class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager { + get { + if ((resourceMan == null)) { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Tango.FirmwareUpdateLib.WPF.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Overrides the current thread's CurrentUICulture property for all + /// resource lookups using this strongly typed resource class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture { + get { + return resourceCulture; + } + set { + resourceCulture = value; + } + } + } +} diff --git a/Software/Visual_Studio/Firmware/Tango.FirmwareUpdateLib.WPF/Properties/Resources.resx b/Software/Visual_Studio/Firmware/Tango.FirmwareUpdateLib.WPF/Properties/Resources.resx new file mode 100644 index 000000000..af7dbebba --- /dev/null +++ b/Software/Visual_Studio/Firmware/Tango.FirmwareUpdateLib.WPF/Properties/Resources.resx @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/Software/Visual_Studio/Firmware/Tango.FirmwareUpdateLib.WPF/Properties/Settings.Designer.cs b/Software/Visual_Studio/Firmware/Tango.FirmwareUpdateLib.WPF/Properties/Settings.Designer.cs new file mode 100644 index 000000000..37290bd82 --- /dev/null +++ b/Software/Visual_Studio/Firmware/Tango.FirmwareUpdateLib.WPF/Properties/Settings.Designer.cs @@ -0,0 +1,30 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Tango.FirmwareUpdateLib.WPF.Properties +{ + + + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")] + internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase + { + + private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); + + public static Settings Default + { + get + { + return defaultInstance; + } + } + } +} diff --git a/Software/Visual_Studio/Firmware/Tango.FirmwareUpdateLib.WPF/Properties/Settings.settings b/Software/Visual_Studio/Firmware/Tango.FirmwareUpdateLib.WPF/Properties/Settings.settings new file mode 100644 index 000000000..033d7a5e9 --- /dev/null +++ b/Software/Visual_Studio/Firmware/Tango.FirmwareUpdateLib.WPF/Properties/Settings.settings @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/Software/Visual_Studio/Firmware/Tango.FirmwareUpdateLib.WPF/Tango.FirmwareUpdateLib.WPF.csproj b/Software/Visual_Studio/Firmware/Tango.FirmwareUpdateLib.WPF/Tango.FirmwareUpdateLib.WPF.csproj new file mode 100644 index 000000000..2b58b0e55 --- /dev/null +++ b/Software/Visual_Studio/Firmware/Tango.FirmwareUpdateLib.WPF/Tango.FirmwareUpdateLib.WPF.csproj @@ -0,0 +1,93 @@ + + + + + Debug + AnyCPU + {25D7CC4D-A11C-4065-A797-4A1944F636C0} + library + Tango.FirmwareUpdateLib.WPF + Tango.FirmwareUpdateLib.WPF + v4.6.1 + 512 + {60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + 4 + true + + + true + full + false + ..\..\Build\Core\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + ..\..\Build\Core\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + 4.0 + + + + + + + + + + + + + Code + + + True + True + Resources.resx + + + True + Settings.settings + True + + + ResXFileCodeGenerator + Resources.Designer.cs + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + + + {a34ee0f0-649d-41c8-8489-b6f1cc6924ee} + Tango.Core + + + {bc932dbd-7cdb-488c-99e4-f02cf441f55e} + Tango.Logging + + + {db79fb33-ce7a-49cf-aa89-f697e5cdb0f6} + Tango.FirmwareUpdateLib + + + + \ No newline at end of file -- cgit v1.3.1