def board_rev():
    # Verify board_family is Raspberry Pi 2
    rev = Output.board_rev()
    known = rev in [0x0004, 0x0005, 0x0006, 0x0007, 0x0008, 0x0009, 
                    0x000d, 0x000e, 0x000f, 0x0010, 0x0011, 0x0012, 
                    0x1041, # Pi 2
                    0x2082, # Pi 3
                    ]
    print("Board rev: 0x{:04x}".format(rev))
    if not known:
        print("Board is not known.  Some tests may fail.")
    return known
def board_rev():
    # Verify board_family is Raspberry Pi 2
    rev = Output.board_rev()
    known = rev in [
        0x0004,
        0x0005,
        0x0006,
        0x0007,
        0x0008,
        0x0009,
        0x000d,
        0x000e,
        0x000f,
        0x0010,
        0x0011,
        0x0012,
        0x1041,  # Pi 2
        0x2082,  # Pi 3
    ]
    print("Board rev: 0x{:04x}".format(rev))
    if not known:
        print("Board is not known.  Some tests may fail.")
    return known
def verify_cpu(i, o):
    rev = Output.board_rev()
    max_cpu = 20 if rev < 0x1000 else 10;
    return testing.verify_cpu(max_cpu)
def verify_cpu(i, o):
    rev = Output.board_rev()
    max_cpu = 20 if rev < 0x1000 else 10
    return testing.verify_cpu(max_cpu)