summaryrefslogtreecommitdiffstatshomepage
path: root/tests/pyb/uart.py
Commit message (Collapse)AuthorAge
* stmhal: Make uart.write() function correctly for timeout=0.Damien George2015-11-30
| | | | | | | | | | | In non-blocking mode (timeout=0), uart.write() can now transmit all of its data without raising an exception. uart.read() also works correctly in this mode. As part of this patch, timout_char now has a minimum value which is long enough to transfer 1 character. Addresses issue #1533.
* tests: Add tests to create valid and invalid UART, I2C, SPI, CAN busses.Damien George2015-05-28
|
* tests: Update pyb/uart.py test since baudrate of 1200 is too low.Damien George2015-02-27
|
* stmhal: Add uart.sendbreak() method, to send a break condition.Damien George2015-02-13
|
* stmhal: Overhaul UART class to use read/write, and improve it.v1.3.4Damien George2014-10-21
| | | | | | | | | | | | UART object now uses a stream-like interface: read, readall, readline, readinto, readchar, write, writechar. Timeouts are configured when the UART object is initialised, using timeout and timeout_char keyword args. The object includes optional read buffering, using interrupts. You can set the buffer size dynamically using read_buf_len keyword arg. A size of 0 disables buffering.
* tests: Add a suite of tests specifically for the pyboard.Damien George2014-05-03
In tests/pyb is now a suite of tests that tests the pyb module on the pyboard. They include expected output files because we can't run CPython on the pyboard to compare against. run-tests script has now been updated to allow pyboard tests to be run. Just pass the option --pyboard. This runs all basic, float and pyb tests. Note that float/math-fun.py currently fails because not all math functions are implemented in stmhal/.