public override MemoryLayout GetMemoryLayout(MCUBuilder mcu, MCUFamilyBuilder family)
{
foreach (var kv in _SpecialMemoryLayouts)
if (kv.Key.IsMatch(mcu.Name))
return kv.Value;
MemoryLayout layout = new MemoryLayout { DeviceName = mcu.Name, Memories = new List<Memory>() };
layout.Memories.Add(new Memory
{
Name = "FLASH",
Access = MemoryAccess.Undefined,
Type = MemoryType.FLASH,
Start = FLASHBase,
Size = (uint)mcu.FlashSize,
});
layout.Memories.Add(new Memory
{
Name = "SRAM",
Access = MemoryAccess.Undefined,
Type = MemoryType.RAM,
Start = SRAMBase,
Size = (uint)mcu.RAMSize,
});
return layout;
}