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; }
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; }