Pārlūkot izejas kodu

2020.03.27 / Shayne Lo

    Actions:
    1.Add new image type : LED Control board

    Files:
    1. As follow commit history

    Image version: 0.0.1.1
    Image checksum: XXXXXXXX

    Hardware PWB P/N : XXXXXXX
    Hardware Version : XXXXXXX
RobertShayne 5 gadi atpakaļ
vecāks
revīzija
6efb432d42

BIN
bin/Firmware Header Builder.exe


BIN
release/Firmware Header Builder_0.0.1.1/Firmware Header Builder_0.0.1.1.exe


+ 38 - 0
src/main/FirmwareHeaderBuilder/FirmwareHeaderBuilder.csproj

@@ -10,6 +10,21 @@
     <AssemblyName>FirmwareHeaderBuilder</AssemblyName>
     <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
     <FileAlignment>512</FileAlignment>
+    <PublishUrl>publish\</PublishUrl>
+    <Install>true</Install>
+    <InstallFrom>Disk</InstallFrom>
+    <UpdateEnabled>false</UpdateEnabled>
+    <UpdateMode>Foreground</UpdateMode>
+    <UpdateInterval>7</UpdateInterval>
+    <UpdateIntervalUnits>Days</UpdateIntervalUnits>
+    <UpdatePeriodically>false</UpdatePeriodically>
+    <UpdateRequired>false</UpdateRequired>
+    <MapFileExtensions>true</MapFileExtensions>
+    <ApplicationRevision>0</ApplicationRevision>
+    <ApplicationVersion>1.0.0.%2a</ApplicationVersion>
+    <IsWebBootstrapper>false</IsWebBootstrapper>
+    <UseApplicationTrust>false</UseApplicationTrust>
+    <BootstrapperEnabled>true</BootstrapperEnabled>
   </PropertyGroup>
   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
     <PlatformTarget>AnyCPU</PlatformTarget>
@@ -60,6 +75,7 @@
     <Compile Include="Properties\AssemblyInfo.cs" />
     <EmbeddedResource Include="Form1.resx">
       <DependentUpon>Form1.cs</DependentUpon>
+      <SubType>Designer</SubType>
     </EmbeddedResource>
     <EmbeddedResource Include="Properties\Resources.resx">
       <Generator>ResXFileCodeGenerator</Generator>
@@ -87,6 +103,28 @@
   <ItemGroup>
     <Folder Include="View\" />
   </ItemGroup>
+  <ItemGroup>
+    <BootstrapperPackage Include=".NETFramework,Version=v4.0">
+      <Visible>False</Visible>
+      <ProductName>Microsoft .NET Framework 4 %28x86 和 x64%29</ProductName>
+      <Install>true</Install>
+    </BootstrapperPackage>
+    <BootstrapperPackage Include="Microsoft.Net.Client.3.5">
+      <Visible>False</Visible>
+      <ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName>
+      <Install>false</Install>
+    </BootstrapperPackage>
+    <BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
+      <Visible>False</Visible>
+      <ProductName>.NET Framework 3.5 SP1</ProductName>
+      <Install>false</Install>
+    </BootstrapperPackage>
+    <BootstrapperPackage Include="Microsoft.Windows.Installer.3.1">
+      <Visible>False</Visible>
+      <ProductName>Windows Installer 3.1</ProductName>
+      <Install>true</Install>
+    </BootstrapperPackage>
+  </ItemGroup>
   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
   <PropertyGroup>
     <PostBuildEvent>copy "$(TargetDir)\FirmwareHeaderBuilder.exe" "$(TargetDir)\..\..\..\..\..\bin\Firmware Header Builder.exe"  /y</PostBuildEvent>

+ 8 - 4
src/main/FirmwareHeaderBuilder/Model/ImageType.cs

@@ -43,14 +43,16 @@ namespace FirmwareHeaderBuilder.Model
         public static ImageType F950_PSU_PrimaryController      = new ImageType(17, "F950 PSU primary controller", new byte[] { 0x10, 0x00, 0x00, 0x12 });
         /// <summary>F950 PSU secondary controller。</summary>
         public static ImageType F950_PSU_SecondaryController    = new ImageType(18, "F950 PSU secondary controller", new byte[] { 0x10, 0x00, 0x00, 0x13 });
+        /// <summary>LED Control board。</summary>
+        public static ImageType LED_Control_board               = new ImageType(19, "LED Control board", new byte[] { 0x10, 0x00, 0x00, 0x14 });
         /// <summary>AC cord set controller。</summary>
-        public static ImageType AC_CordSetController            = new ImageType(19, "AC cord set controller", new byte[] { 0x20, 0x00, 0x00, 0x01 });
+        public static ImageType AC_CordSetController            = new ImageType(20, "AC cord set controller", new byte[] { 0x20, 0x00, 0x00, 0x01 });
         /// <summary>AC wall-mount (low-end) controller。</summary>
-        public static ImageType AC_WallMountController          = new ImageType(20, "AC wall-mount (low-end) controller", new byte[] { 0x20, 0x00, 0x00, 0x02 });
+        public static ImageType AC_WallMountController          = new ImageType(21, "AC wall-mount (low-end) controller", new byte[] { 0x20, 0x00, 0x00, 0x02 });
         /// <summary>CMU in BMS。</summary>
-        public static ImageType BMS_CMU                         = new ImageType(21, "CMU in BMS", new byte[] { 0x30, 0x00, 0x00, 0x01 });
+        public static ImageType BMS_CMU                         = new ImageType(22, "CMU in BMS", new byte[] { 0x30, 0x00, 0x00, 0x01 });
         /// <summary>BMU in BMS。</summary>
-        public static ImageType BMS_BMU                         = new ImageType(22, "BMU in BMS", new byte[] { 0x30, 0x00, 0x00, 0x02 });
+        public static ImageType BMS_BMU                         = new ImageType(23, "BMU in BMS", new byte[] { 0x30, 0x00, 0x00, 0x02 });
 
         #region Properties
         /// <summary>取得對應使用者操作介面之索引。</summary>
@@ -100,6 +102,7 @@ namespace FirmwareHeaderBuilder.Model
                 yield return F750_PSU_SecondaryController;
                 yield return F950_PSU_PrimaryController;
                 yield return F950_PSU_SecondaryController;
+                yield return LED_Control_board;
                 yield return AC_CordSetController;
                 yield return AC_WallMountController;
                 yield return BMS_CMU;
@@ -132,6 +135,7 @@ namespace FirmwareHeaderBuilder.Model
                 yield return F750_PSU_SecondaryController.Text;
                 yield return F950_PSU_PrimaryController.Text;
                 yield return F950_PSU_SecondaryController.Text;
+                yield return LED_Control_board.Text;
                 yield return AC_CordSetController.Text;
                 yield return AC_WallMountController.Text;
                 yield return BMS_CMU.Text;

+ 2 - 2
src/main/FirmwareHeaderBuilder/Properties/AssemblyInfo.cs

@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
 // 您可以指定所有的值,或將組建編號或修訂編號設為預設值
 // 指定為預設值: 
 // [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("0.0.1.0")]
-[assembly: AssemblyFileVersion("0.0.1.0")]
+[assembly: AssemblyVersion("0.0.1.1")]
+[assembly: AssemblyFileVersion("0.0.1.1")]