예제 #1
0
 public SoftDevice(string name, uint flash, uint sram, string deviceRegex, string desc, string pDirSdk)
 {
     Name           = name;
     FLASHSize      = flash;
     SRAMSize       = sram;
     DeviceRegex    = new Regex(deviceRegex, RegexOptions.IgnoreCase);
     Description    = desc;
     LdOriginalName = "";
     LinkerScriptWithMaximumReservedRAM = null;
 }
예제 #2
0
 public SoftDevice(string name, string deviceRegex, string desc, string pDirSdk)
 {
     Name = name;
     LinkerScriptWithMaximumReservedRAM = FindLdsFile(pDirSdk, Name);
     LdOriginalName = LinkerScriptWithMaximumReservedRAM.FullPath;
     FLASHSize      = (uint)LinkerScriptWithMaximumReservedRAM.FLASH.Origin;
     SRAMSize       = (uint)LinkerScriptWithMaximumReservedRAM.RAM.Origin - SRAMBase;
     DeviceRegex    = new Regex(deviceRegex, RegexOptions.IgnoreCase);
     Description    = desc;
 }