From ef369249cb406758ec1caa9a212478ef69fd7ff0 Mon Sep 17 00:00:00 2001 From: Daniel Campora Date: Fri, 25 Sep 2015 15:20:07 +0200 Subject: cc3200: Implement support for os.dupterm(). --- tests/wipy/uart.py | 5 ++--- tests/wipy/uart_irq.py | 3 +-- 2 files changed, 3 insertions(+), 5 deletions(-) (limited to 'tests') diff --git a/tests/wipy/uart.py b/tests/wipy/uart.py index d700c29d0..a69300d8f 100644 --- a/tests/wipy/uart.py +++ b/tests/wipy/uart.py @@ -6,7 +6,6 @@ UART0 and UART1 must be connected together for this test to pass. from pyb import UART from pyb import Pin import os -import pyb import time machine = os.uname().machine @@ -19,8 +18,8 @@ elif 'WiPy' in machine: else: raise Exception('Board not supported!') -# just in case we have stdio duplicated on any of the uarts -pyb.repl_uart(None) +# just in case we have the repl duplicated on any of the uarts +os.dupterm(None) for uart_id in uart_id_range: uart = UART(uart_id, 38400) diff --git a/tests/wipy/uart_irq.py b/tests/wipy/uart_irq.py index 3f1084cce..322be9e8b 100644 --- a/tests/wipy/uart_irq.py +++ b/tests/wipy/uart_irq.py @@ -4,7 +4,6 @@ UART IRQ test for the CC3200 based boards. from pyb import UART import os -import pyb import time machine = os.uname().machine @@ -16,7 +15,7 @@ else: raise Exception('Board not supported!') # just in case we have stdio duplicated on any of the uarts -pyb.repl_uart(None) +os.dupterm(None) uart0 = UART(0, 1000000, pins=uart_pins[0][0]) uart1 = UART(1, 1000000, pins=uart_pins[1][0]) -- cgit v1.2.3