summaryrefslogtreecommitdiffstatshomepage
path: root/tests/pyb/i2c_error.py
Commit message (Collapse)AuthorAge
* tests: Move port-specific test directories into tests/ports/ directory.Damien George2024-01-22
| | | | | | To keep them all together, mirroring the top-level directory structure. Signed-off-by: Damien George <damien@micropython.org>
* stm32: Replace master/slave with controller/peripheral in I2C and SPI.David P2021-07-18
| | | | | | | | Replace "master" with "controller" and "slave" with "peripheral" in comments, errors, and debug messages. Add CONTROLLER and PERIPHERAL constants to pyb.SPI and pyb.I2C classes; retain MASTER and SLAVE constants for backward compatiblity.
* tests: Format all Python code with black, except tests in basics subdir.David Lechner2020-03-30
| | | | | | | | | | This adds the Python files in the tests/ directory to be formatted with ./tools/codeformat.py. The basics/ subdirectory is excluded for now so we aren't changing too much at once. In a few places `# fmt: off`/`# fmt: on` was used where the code had special formatting for readability or where the test was actually testing the specific formatting.
* tests/pyb: Refactor pyboard tests to work on PYBv1, PYBLITEv1 and PYBD.Damien George2019-12-13
|
* 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: For pyboard, add test for I2C error handling and recovery.Damien George2016-01-30