2015-02-23 12:55:19 -05:00
|
|
|
def main(wb):
|
2015-04-13 07:09:44 -04:00
|
|
|
wb.open()
|
|
|
|
regs = wb.regs
|
|
|
|
###
|
|
|
|
print("sysid : 0x{:04x}".format(regs.identifier_sysid.read()))
|
|
|
|
print("revision : 0x{:04x}".format(regs.identifier_revision.read()))
|
|
|
|
print("frequency : {}MHz".format(int(regs.identifier_frequency.read()/1000000)))
|
|
|
|
###
|
|
|
|
wb.close()
|