2015-03-01 05:07:28 -05:00
|
|
|
def main(wb):
|
|
|
|
wb.open()
|
|
|
|
regs = wb.regs
|
|
|
|
###
|
2015-03-03 04:29:28 -05:00
|
|
|
print("sysid : 0x{:04x}".format(regs.identifier_sysid.read()))
|
|
|
|
print("revision : 0x{:04x}".format(regs.identifier_revision.read()))
|
2015-03-17 11:01:12 -04:00
|
|
|
print("frequency : {}MHz".format(int(regs.identifier_frequency.read()/1000000)))
|
2015-03-01 05:07:28 -05:00
|
|
|
###
|
|
|
|
wb.close()
|