2015-03-01 05:07:28 -05:00
|
|
|
def main(wb):
|
|
|
|
wb.open()
|
|
|
|
regs = wb.regs
|
|
|
|
###
|
|
|
|
print("sysid : 0x%04x" %regs.identifier_sysid.read())
|
|
|
|
print("revision : 0x%04x" %regs.identifier_revision.read())
|
|
|
|
print("frequency : %d MHz" %(regs.identifier_frequency.read()/1000000))
|
|
|
|
###
|
|
|
|
wb.close()
|