Example #1
0
def get_device(ui, name):
    """return the device structure for the named SoC"""
    if not name in soc_db:
        assert False, 'unknown SoC name %s' % name
        return None
    info = soc_db[name]
    svd_file = './vendor/nordic/svd/%s.svd.gz' % info.svd
    ui.put('%s: compiling %s\n' % (name, svd_file))
    device = soc.build_device(svd_file)
    for f in info.fixups:
        f(device)
    return device
Example #2
0
def get_device(ui, name):
  """return the device structure for the named SoC"""
  if not soc_db.has_key(name):
    assert False, 'unknown SoC name %s' % name
    return None
  info = soc_db[name]
  svd_file = './vendor/nordic/svd/%s.svd.gz' % info.svd
  ui.put('%s: compiling %s\n' % (name, svd_file))
  device = soc.build_device(svd_file)
  for f in info.fixups:
    f(device)
  return device