diff options
| author | Daniel Campora <daniel@wipy.io> | 2015-08-19 13:59:33 +0200 |
|---|---|---|
| committer | Daniel Campora <daniel@wipy.io> | 2015-09-10 07:56:46 +0200 |
| commit | b864e7afe4af74392d27fda71debd74c48a27ed3 (patch) | |
| tree | 7cf39d9ef600a9bb3d5c5f5d8230779e3c7f6b7d /cc3200/tools/smoke.py | |
| parent | 75a811a6df51392868ba35e9e341d882b842b066 (diff) | |
cc3200: Remove the UART0 programming pins from the smoke test.
Diffstat (limited to 'cc3200/tools/smoke.py')
| -rw-r--r-- | cc3200/tools/smoke.py | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/cc3200/tools/smoke.py b/cc3200/tools/smoke.py index e1e3bbec5..5bf0d8cf9 100644 --- a/cc3200/tools/smoke.py +++ b/cc3200/tools/smoke.py @@ -7,7 +7,7 @@ Execute it like this: python3 run-tests --target wipy --device 192.168.1.1 ../cc3200/tools/smoke.py """ -pin_map = [2, 1, 23, 24, 11, 12, 13, 14, 15, 16, 17, 22, 28, 10, 9, 8, 7, 6, 30, 31, 3, 0, 4, 5] +pin_map = [23, 24, 11, 12, 13, 14, 15, 16, 17, 22, 28, 10, 9, 8, 7, 6, 30, 31, 3, 0, 4, 5] test_bytes = os.urandom(2048) def test_pin_read (type): @@ -61,3 +61,14 @@ ls = os.listdir() print('test' not in ls) print(ls) +# test the real time clock +rtc = pyb.RTC() +while (rtc.datetime()[7] > 800): + pass + +time_1 = rtc.datetime() +pyb.delay(1000) +time_2 = rtc.datetime() +print (time_2[6] - time_1[6] == 1) +print (time_2[7] - time_1[7] < 25) + |
