Commit Graph

1711 Commits

Author SHA1 Message Date
Damien George
2822d4e6ce stmhal: Add I2C functions for pure master read/write. 2014-04-16 00:27:14 +01:00
Damien George
ee01411036 py: Add len(bytes). 2014-04-15 23:10:00 +01:00
Damien George
897fe0c0d0 py: Add builtin functions bin and oct, and some tests for them. 2014-04-15 22:03:55 +01:00
Damien George
d5323f07ff Merge pull request #496 from dhylands/fix-debug-usart
Fix call to enable pyb_usart_global_debug.
2014-04-15 21:25:27 +01:00
Dave Hylands
00adf67179 Fix call to enable pyb_usart_global_debug. 2014-04-15 12:20:31 -07:00
Damien George
c58c1191b2 Merge branch 'master' of github.com:micropython/micropython 2014-04-15 19:59:13 +01:00
Damien George
9699ea6a2f stmhal: Fix USB MSC so that it unmounts correctly on Mac OS X.
Mac OS X sends a SCSI command to remove the medium when it unmounts a
drive.  If this command is not honoured, then OS X will automatically
remount the drive, making it impossible to eject.  This patch disables
the USB MSC when the right SCSI command is sent.
2014-04-15 19:56:32 +01:00
Damien George
4d7f4eb6a9 stmhal: Add ADC function to read data at a given frequency.
Reads ADC values into a bytearray (or similar) at a fixed rate.  Needs a
better name and improved API.  Also fix up DAC dma function (which also
needs a better name and API).
2014-04-15 19:52:56 +01:00
Damien George
e95da5b784 stmhal: Add I2C.scan method, to scan all devices on the bus.
Simple way to find the address of an attached I2C device.
2014-04-15 19:24:13 +01:00
Damien George
f6d25ecf7b stmhal: Add simple README.txt to freshly-created filesystem. 2014-04-15 19:20:25 +01:00
Damien George
3b108e7699 Merge pull request #493 from aitjcize/patch
Move entry_table to separated header file.
2014-04-15 14:33:11 +01:00
AZ Huang
9413ca02fb Rename header file. 2014-04-15 21:29:08 +08:00
Damien George
203bc98804 travis: Move diffing back to after_failure command.
Need to click on icon at right to see the output.
2014-04-15 12:52:59 +01:00
Damien George
b013aea809 py: Fix builtin hex to print prefix.
I was too hasty.  Still a one-liner though.
2014-04-15 12:50:21 +01:00
Damien George
5805111732 py: Add hex builtin function.
A one-liner, added especially for @pfalcon :)
2014-04-15 12:42:52 +01:00
Damien George
256b319d56 tests: Disable memoryerror.py test, since it fails on travis.
Would be good to test this, but need to find a way to optionally not
running it when on travis.
2014-04-15 12:30:30 +01:00
Damien George
48aaa27c6a travis: Diff output, hopefully this works. 2014-04-15 12:20:22 +01:00
Damien George
fd1c7b9d48 travis: Continue to debug tests output.
Seems that any commands in after_failure do not have stdout...
2014-04-15 12:05:26 +01:00
Damien George
e8ecca21ff travis: More tests output debugging. 2014-04-15 11:56:57 +01:00
Damien George
c13d0b3304 stmhal: Wrap skin-named-usarts in PYBV10 #if. 2014-04-15 11:52:47 +01:00
Damien George
35443610b1 travis: More tests debugging. 2014-04-15 11:38:30 +01:00
Damien George
45b4cc77dd travis: Debugging failing tests. 2014-04-15 11:25:36 +01:00
Damien George
9e2890bb00 travis: On fail, cd to tests directory before diffing. 2014-04-15 11:14:42 +01:00
Damien George
2f930fa0cb Merge pull request #490 from redteam316/master
Fixed Travis-CI Build Status Link in README.md
2014-04-15 11:05:55 +01:00
AZ Huang
9309d9982f Move entry_table to separated header file. 2014-04-15 17:08:42 +08:00
Andrew Scheller
11559cff38 travis: only build unix with gcc-4.7 2014-04-15 04:36:25 +01:00
Andrew Scheller
f0777d1c2c travis: build unix targets first
because @pfalcon says so
2014-04-15 04:15:36 +01:00
Jonathan Greig
e71311ed87 Fixed Travis-CI Build Status Link in README.md 2014-04-14 21:52:22 -05:00
Andrew Scheller
499d50be98 Merge remote-tracking branch 'upstream/master' into patch-1
Conflicts:
	.travis.yml
2014-04-15 03:48:58 +01:00
Paul Sokolovsky
8c1bec4ae7 .travis.yml: Use gcc-4.7 to avoid broken codegeneration and failed tests. 2014-04-15 05:13:48 +03:00
Andrew Scheller
16fecc0a84 Update .travis.yml
Check that the bare-arm, stmhal and unix-cpy ports at least remain compilable, even if we can only actually run tests against the unix port.
2014-04-15 03:02:17 +01:00
Paul Sokolovsky
c1cc4a68bc Merge pull request #486 from lurch/patch-1
Update .travis.yml to use python3.3
2014-04-15 04:58:44 +03:00
Andrew Scheller
c29a0ac56a Update .travis.yml
Seems like I'd inadvertently created invalid YAML!
2014-04-15 02:42:23 +01:00
Andrew Scheller
9b5a9d41dc Update .travis.yml
Add diffing of failure logs
2014-04-15 02:29:59 +01:00
Andrew Scheller
e31a8222f2 Update .travis.yml
Doh, the shebang line for run-tests itself relies on `python3`
2014-04-15 02:14:53 +01:00
Andrew Scheller
0388b2ea78 Update .travis.yml
This *might* fix it enough for all tests to run (maybe?)
2014-04-15 00:52:15 +01:00
Paul Sokolovsky
cc8c0882a0 pip-micropython: Fix inverted condition. 2014-04-15 02:32:41 +03:00
Damien George
e10da77a5c Merge branch 'master' of github.com:micropython/micropython 2014-04-14 23:44:20 +01:00
Damien George
8341725b65 travis: Only run some tests, to work around CPython version issues.
Needs a proper fix, to install/configure CPython 3.3.x (or 3.4.0) on
Travis CI.
2014-04-14 23:43:35 +01:00
Damien George
3683789207 py: Clean up and add comments to makeqstrdata. 2014-04-14 23:38:37 +01:00
Paul Sokolovsky
a5854d2bc5 builtinimport: Add basic support for namespace packages.
That was easy - just avoid erroring out on seeing candidate dir for namespace
package. That's far from being complete though - namespace packages should
support importing portions of package from different sys.path entries, here
we require first matching entry to contain all namespace package's portions.

And yet, that's a way to put parts of the same Python package into multiple
installable package - something we really need for *Micro*Python.
2014-04-15 01:30:25 +03:00
Paul Sokolovsky
75ffcaeace py: Implement __delitem__ method for classes. 2014-04-15 01:30:25 +03:00
Damien George
bc9ec5002d Merge pull request #485 from lurch/patch-1
pip-micropython: revert $HOME back to ~
2014-04-14 22:30:20 +01:00
Andrew Scheller
6fc40cc3da pip-micropython: revert $HOME back to ~ 2014-04-14 22:26:34 +01:00
Damien George
5224705248 travis: Change to tests directory before running. 2014-04-14 22:04:15 +01:00
Damien George
3d867f5eab Merge pull request #479 from lurch/patch-1
Don't allow both ENDIANNESSes to be set
2014-04-14 21:41:05 +01:00
Damien George
a7239b2fc2 Merge pull request #480 from lurch/patch-2
Make pip-micropython more portable
2014-04-14 21:39:31 +01:00
Damien George
98bd4f24ff Fix README build status image. 2014-04-14 21:33:31 +01:00
Damien George
1d8d2f84aa Merge branch 'master' of github.com:micropython/micropython 2014-04-14 21:31:11 +01:00
Damien George
15bbd251f6 Update README to include build status from Travis CI. 2014-04-14 21:30:53 +01:00