2017-02-06 13:48:01 +11:00
|
|
|
# test pyb module on F405 MCUs
|
|
|
|
|
|
|
|
import os, pyb
|
|
|
|
|
2021-03-15 19:27:36 +05:30
|
|
|
if not "STM32F405" in os.uname().machine:
|
|
|
|
print("SKIP")
|
2017-06-10 20:14:16 +03:00
|
|
|
raise SystemExit
|
2017-02-06 13:48:01 +11:00
|
|
|
|
|
|
|
print(pyb.freq())
|
|
|
|
print(type(pyb.rng()))
|