summaryrefslogtreecommitdiffstatshomepage
path: root/tests/pyb
Commit message (Collapse)AuthorAge
* tests: Convert remaining "sys.exit()" to "raise SystemExit".Paul Sokolovsky2017-06-10
|
* various: Spelling fixesVille Skyttä2017-05-29
|
* tests/pyb: Adjust tests so they can run on PYB and PYBLITE.Damien George2017-02-06
| | | | | | A few tests still fail on PYBLITE, and that's due to differences in the available peripheral block numbers on the different MCUs (eg I2C(2) exists on one, but it's I2C(3) on the other).
* stmhal: Add pyb.fault_debug() function, to control hard-fault behaviour.Damien George2017-02-06
| | | | | | | | | This new function controls what happens on a hard-fault: - debugging disabled: board will do a reset - debugging enabled: board will print registers and stack and flash LEDs The default is disabled, ie to do a reset. This is different to previous behaviour which flashed the LEDs and waited indefinitely.
* tests/pyb/uart: Update test to match recent change to UART timeout_char.Damien George2017-01-04
|
* stmhal/i2c: Add option to I2C to enable/disable use of DMA transfers.Damien George2016-11-11
| | | | | | | New keyword option in constructor and init() method is "dma=<bool>". DMA is now disabled by default for I2C transfers because it currently does not handle I2C bus errors very well (eg if slave device doesn't ACK or NACK correctly during a transfer).
* tests/pyb: Update exp file for previously updated extint test.Damien George2016-09-09
|
* tests/pyb: Add test for ExtInt when doing swint while disabled.Damien George2016-09-09
|
* tests/pyb/rtc: Make RTC test on pyboard more reliable by calling init().Damien George2016-06-03
|
* stmhal: Convert to use internal errno symbols; enable uerrno module.Damien George2016-05-10
|
* stmhal/can: Allow to get existing CAN obj if constructed without args.Henrik Sölver2016-05-08
| | | | | | | Initialisation of CAN objects should now behave as other peripheral objects. Fixes issue #2001.
* tests/pyb: Add simple test for stm module on pyboard.Damien George2016-02-10
|
* tests: For pyboard, add test for I2C error handling and recovery.Damien George2016-01-30
|
* tests: Update pyboard LED test.Damien George2016-01-29
|
* 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.
* stmhal: uart.any() function now returns number of bytes available.Ryan Shaw2015-11-30
|
* stmhal/can: Fix a bug in filter handling.Henrik Sölver2015-11-02
| | | | Reported here: http://forum.micropython.org/viewtopic.php?f=2&t=845
* tests: In pyb RTC tests, check wakeup register values.Peter Hinch2015-10-09
|
* tests: Add test for pyboard SPI in slave mode, recv with no master.Damien George2015-08-05
| | | | See PR #1414.
* tests: Add tests to create valid and invalid UART, I2C, SPI, CAN busses.Damien George2015-05-28
|
* lib: Fix some issues in timeutilsDave Hylands2015-05-21
| | | | | | | | | | | | | | | | | | | 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.
* sthmal/rtc.c: Add calibration() method to get/set RTC fine-tuning value.blmorris2015-05-11
|
* stmhal: Add support for sending and receiving CAN RTR messages.Henrik2015-04-18
|
* stmhal: Allow sending CAN messages with timeout=0.Damien George2015-04-16
| | | | Thanks to Henrik Sölver for this patch.
* stmhal: Make LED object print LED(x) for consistency with constructor.Damien George2015-04-11
|
* tests: Make pyb/timer test check callback timing properly.Damien George2015-03-20
|
* stmhal: Fix adc.read_timed so buffer store respects element size.Damien George2015-03-13
| | | | Addresses issue #1154.
* tests: Update pyb/uart.py test since baudrate of 1200 is too low.Damien George2015-02-27
|
* tests: Add more tests for pyb.Timer class.Damien George2015-02-23
|
* stmhal: Add support for CAN rx callbacks.Henrik Sölver2015-02-15
|
* stmhal: Add uart.sendbreak() method, to send a break condition.Damien George2015-02-13
|
* tests: Get misc/print_exception and pyb/spi working on pyboard.Damien George2014-12-18
|
* Adding CAN filter managementHenrik Sölver2014-11-26
|
* stmhal: Fix HAL error raising; make test for it.Damien George2014-11-15
| | | | Addresses issue #968.
* stmhal: Improve CAN print function.Damien George2014-10-30
|
* tests: Added and adapted CAN tests for extended messagesHenrik Sölver2014-10-30
|
* stmhal: Change SPI phase spec to 0,1 to match standard conventions.Damien George2014-10-26
| | | | | | | 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.
* 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 simple CAN test.Damien George2014-10-02
|
* tests: Add test for pyb.disable_irq and pyb.enable_irq.Damien George2014-08-25
|
* stmhal, modtime: Small changes, reduced code size by around 80 bytes.Damien George2014-08-24
| | | | Also added test for modtime.
* tests: Wait for just over 1 sec when testing RTC.Damien George2014-08-16
| | | | | Waiting for 1000ms between seconds of RTC is sometimes too quick. Waiting for 1001ms is enough for the RTC to pass 1 second.
* tests, pyb: Update pin test.Damien George2014-08-08
|
* stmhal: Fix setting of RTC: was BCD now BIN encoded.Damien George2014-05-10
| | | | Addresses issue #592.
* tests, pyb: Add 'import pyb' when needed.Damien George2014-05-04
|
* 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/.