aboutsummaryrefslogtreecommitdiff
path: root/tests/pyb
AgeCommit message (Collapse)Author
2015-10-09tests: In pyb RTC tests, check wakeup register values.Peter Hinch
2015-08-05tests: Add test for pyboard SPI in slave mode, recv with no master.Damien George
See PR #1414.
2015-05-28tests: Add tests to create valid and invalid UART, I2C, SPI, CAN busses.Damien George
2015-05-21lib: Fix some issues in timeutilsDave Hylands
In particular, dates prior to Mar 1, 2000 are screwed up. The easiest way to see this is to do: >>> import time >>> time.localtime(0) (2000, 1, 1, 0, 0, 0, 5, 1) >>> time.localtime(1) (2000, 1, 2, 233, 197, 197, 6, 2) With this patch, we instead get: >>> import time >>> time.localtime(1) (2000, 1, 1, 0, 0, 1, 5, 1) Doh - In C % is NOT a modulo operator, it's a remainder operator.
2015-05-11sthmal/rtc.c: Add calibration() method to get/set RTC fine-tuning value.blmorris
2015-04-18stmhal: Add support for sending and receiving CAN RTR messages.Henrik
2015-04-16stmhal: Allow sending CAN messages with timeout=0.Damien George
Thanks to Henrik Sölver for this patch.
2015-04-11stmhal: Make LED object print LED(x) for consistency with constructor.Damien George
2015-03-20tests: Make pyb/timer test check callback timing properly.Damien George
2015-03-13stmhal: Fix adc.read_timed so buffer store respects element size.Damien George
Addresses issue #1154.
2015-02-27tests: Update pyb/uart.py test since baudrate of 1200 is too low.Damien George
2015-02-23tests: Add more tests for pyb.Timer class.Damien George
2015-02-15stmhal: Add support for CAN rx callbacks.Henrik Sölver
2015-02-13stmhal: Add uart.sendbreak() method, to send a break condition.Damien George
2014-12-18tests: Get misc/print_exception and pyb/spi working on pyboard.Damien George
2014-11-26Adding CAN filter managementHenrik Sölver
2014-11-15stmhal: Fix HAL error raising; make test for it.Damien George
Addresses issue #968.
2014-10-30stmhal: Improve CAN print function.Damien George
2014-10-30tests: Added and adapted CAN tests for extended messagesHenrik Sölver
2014-10-26stmhal: Change SPI phase spec to 0,1 to match standard conventions.Damien George
Was 1 or 2, now 0 or 1 (respectively). 0 means sample MISO on first edge, 1 means sample on second edge. Addresses issue #936.
2014-10-21stmhal: Overhaul UART class to use read/write, and improve it.Damien George
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.
2014-10-02tests: Add simple CAN test.Damien George
2014-08-25tests: Add test for pyb.disable_irq and pyb.enable_irq.Damien George
2014-08-24stmhal, modtime: Small changes, reduced code size by around 80 bytes.Damien George
Also added test for modtime.
2014-08-16tests: Wait for just over 1 sec when testing RTC.Damien George
Waiting for 1000ms between seconds of RTC is sometimes too quick. Waiting for 1001ms is enough for the RTC to pass 1 second.
2014-08-08tests, pyb: Update pin test.Damien George
2014-05-10stmhal: Fix setting of RTC: was BCD now BIN encoded.Damien George
Addresses issue #592.
2014-05-04tests, pyb: Add 'import pyb' when needed.Damien George
2014-05-03tests: Add a suite of tests specifically for the pyboard.Damien George
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/.